changeset 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 84b2c1a4984a
children 58b64dbb49c6
files framework/SVFileReader.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/SVFileReader.cpp	Thu Aug 27 16:31:45 2009 +0000
+++ b/framework/SVFileReader.cpp	Fri Sep 11 15:42:32 2009 +0000
@@ -515,6 +515,9 @@
 	    int dataset = attributes.value("dataset").trimmed().toInt(&ok);
 	    if (ok) m_awaitingDatasets[dataset] = id;
 
+            int startFrame = attributes.value("startFrame").trimmed().toInt(&ok);
+            if (ok) model->setStartFrame(startFrame);
+
             model->setObjectName(name);
 	    m_models[id] = model;
 	    return true;