Mercurial > hg > svcore
diff rdf/RDFImporter.cpp @ 1649:1cc9a0d4b1b6 single-point
Update RegionModel following NoteModel, er, model. They have quite a bit in common that we should now pull out some of
author | Chris Cannam |
---|---|
date | Fri, 15 Mar 2019 14:23:50 +0000 |
parents | 513192aa9b03 |
children | 7a56bb85030f |
line wrap: on
line diff
--- a/rdf/RDFImporter.cpp Fri Mar 15 10:57:35 2019 +0000 +++ b/rdf/RDFImporter.cpp Fri Mar 15 14:23:50 2019 +0000 @@ -779,8 +779,8 @@ value = values[0]; } if (haveDuration) { - RegionModel::Point point(ftime, value, fduration, label); - rm->addPoint(point); + Event e(ftime, value, fduration, label); + rm->add(e); } else { // This won't actually happen -- we only create region models // if we do have duration -- but just for completeness @@ -791,9 +791,8 @@ duration = values[1]; } } - RegionModel::Point point(ftime, value, - sv_frame_t(lrintf(duration)), label); - rm->addPoint(point); + Event e(ftime, value, sv_frame_t(lrintf(duration)), label); + rm->add(e); } return; }