Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 652:8fb56fb5bdd3 single-point
Use updated TextModel
author | Chris Cannam |
---|---|
date | Fri, 22 Mar 2019 11:05:29 +0000 |
parents | b63dfd7e2780 |
children | 365c61ac7680 |
comparison
equal
deleted
inserted
replaced
651:b63dfd7e2780 | 652:8fb56fb5bdd3 |
---|---|
1139 // SVCERR << "Current dataset is a text model" << endl; | 1139 // SVCERR << "Current dataset is a text model" << endl; |
1140 float height = 0.0; | 1140 float height = 0.0; |
1141 height = attributes.value("height").trimmed().toFloat(&ok); | 1141 height = attributes.value("height").trimmed().toFloat(&ok); |
1142 QString label = attributes.value("label"); | 1142 QString label = attributes.value("label"); |
1143 // SVDEBUG << "SVFileReader::addPointToDataset: TextModel: frame = " << frame << ", height = " << height << ", label = " << label << ", ok = " << ok << endl; | 1143 // SVDEBUG << "SVFileReader::addPointToDataset: TextModel: frame = " << frame << ", height = " << height << ", label = " << label << ", ok = " << ok << endl; |
1144 tm->addPoint(TextModel::Point(frame, height, label)); | 1144 tm->add(Event(frame, height, label)); |
1145 return ok; | 1145 return ok; |
1146 } | 1146 } |
1147 | 1147 |
1148 PathModel *pm = dynamic_cast<PathModel *>(m_currentDataset); | 1148 PathModel *pm = dynamic_cast<PathModel *>(m_currentDataset); |
1149 | 1149 |