comparison data/model/EditableDenseThreeDimensionalModel.h @ 611:dd97f7b3d120

* 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 beb51f558e9c
children 33fca917c800
comparison
equal deleted inserted replaced
610:0a9e960fca53 611:dd97f7b3d120
54 virtual size_t getStartFrame() const; 54 virtual size_t getStartFrame() const;
55 virtual size_t getEndFrame() const; 55 virtual size_t getEndFrame() const;
56 56
57 virtual Model *clone() const; 57 virtual Model *clone() const;
58 58
59
60 /**
61 * Set the frame offset of the first column.
62 */
63 virtual void setStartFrame(size_t);
59 64
60 /** 65 /**
61 * Return the number of sample frames covered by each set of bins. 66 * Return the number of sample frames covered by each set of bins.
62 */ 67 */
63 virtual size_t getResolution() const; 68 virtual size_t getResolution() const;
155 void truncateAndStore(size_t index, const Column & values); 160 void truncateAndStore(size_t index, const Column & values);
156 Column expandAndRetrieve(size_t index) const; 161 Column expandAndRetrieve(size_t index) const;
157 162
158 std::vector<QString> m_binNames; 163 std::vector<QString> m_binNames;
159 164
165 size_t m_startFrame;
160 size_t m_sampleRate; 166 size_t m_sampleRate;
161 size_t m_resolution; 167 size_t m_resolution;
162 size_t m_yBinCount; 168 size_t m_yBinCount;
163 CompressionType m_compression; 169 CompressionType m_compression;
164 float m_minimum; 170 float m_minimum;