Mercurial > hg > svapp
changeset 653:365c61ac7680 single-point
Use updated ImageModel
author | Chris Cannam |
---|---|
date | Fri, 22 Mar 2019 17:49:23 +0000 |
parents | 8fb56fb5bdd3 |
children | 4f53620962d9 d8beda8a2126 |
files | framework/SVFileReader.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/framework/SVFileReader.cpp Fri Mar 22 11:05:29 2019 +0000 +++ b/framework/SVFileReader.cpp Fri Mar 22 17:49:23 2019 +0000 @@ -1151,7 +1151,7 @@ // SVCERR << "Current dataset is a path model" << endl; int mapframe = attributes.value("mapframe").trimmed().toInt(&ok); // SVDEBUG << "SVFileReader::addPointToDataset: PathModel: frame = " << frame << ", mapframe = " << mapframe << ", ok = " << ok << endl; - pm->addPoint(PathModel::Point(frame, mapframe)); + pm->add(PathPoint(frame, mapframe)); return ok; } @@ -1162,7 +1162,7 @@ QString image = attributes.value("image"); QString label = attributes.value("label"); // SVDEBUG << "SVFileReader::addPointToDataset: ImageModel: frame = " << frame << ", image = " << image << ", label = " << label << ", ok = " << ok << endl; - im->addPoint(ImageModel::Point(frame, image, label)); + im->add(Event(frame).withURI(image).withLabel(label)); return ok; }