diff framework/SVFileReader.cpp @ 653:365c61ac7680 single-point

Use updated ImageModel
author Chris Cannam
date Fri, 22 Mar 2019 17:49:23 +0000
parents 8fb56fb5bdd3
children ffd213b292f9
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;
     }