Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 651:b63dfd7e2780 single-point
Updates for SparseOneDimensionalModel in new API
author | Chris Cannam |
---|---|
date | Thu, 21 Mar 2019 13:34:34 +0000 |
parents | 284cb118368e |
children | 8fb56fb5bdd3 |
comparison
equal
deleted
inserted
replaced
650:ed9cb577eb7c | 651:b63dfd7e2780 |
---|---|
1084 (m_currentDataset); | 1084 (m_currentDataset); |
1085 | 1085 |
1086 if (sodm) { | 1086 if (sodm) { |
1087 // SVCERR << "Current dataset is a sparse one dimensional model" << endl; | 1087 // SVCERR << "Current dataset is a sparse one dimensional model" << endl; |
1088 QString label = attributes.value("label"); | 1088 QString label = attributes.value("label"); |
1089 sodm->addPoint(SparseOneDimensionalModel::Point(frame, label)); | 1089 sodm->add(Event(frame, label)); |
1090 return true; | 1090 return true; |
1091 } | 1091 } |
1092 | 1092 |
1093 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *> | 1093 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *> |
1094 (m_currentDataset); | 1094 (m_currentDataset); |