comparison framework/SVFileReader.cpp @ 181:b35c7af2e1d0

* Add start frame get/set to EditableDenseThreeDimensionalModel and use it when importing grids from CSV with timings attached
author Chris Cannam
date Fri, 11 Sep 2009 15:42:32 +0000
parents d71dccaa576c
children fe83e6e68683
comparison
equal deleted inserted replaced
180:84b2c1a4984a 181:b35c7af2e1d0
512 float maximum = attributes.value("maximum").trimmed().toFloat(&ok); 512 float maximum = attributes.value("maximum").trimmed().toFloat(&ok);
513 if (ok) model->setMaximumLevel(maximum); 513 if (ok) model->setMaximumLevel(maximum);
514 514
515 int dataset = attributes.value("dataset").trimmed().toInt(&ok); 515 int dataset = attributes.value("dataset").trimmed().toInt(&ok);
516 if (ok) m_awaitingDatasets[dataset] = id; 516 if (ok) m_awaitingDatasets[dataset] = id;
517
518 int startFrame = attributes.value("startFrame").trimmed().toInt(&ok);
519 if (ok) model->setStartFrame(startFrame);
517 520
518 model->setObjectName(name); 521 model->setObjectName(name);
519 m_models[id] = model; 522 m_models[id] = model;
520 return true; 523 return true;
521 524