Mercurial > hg > svcore
comparison data/model/EditableDenseThreeDimensionalModel.h @ 533:55ad231c9db7
* try some qvectors
author | Chris Cannam |
---|---|
date | Thu, 22 Jan 2009 17:58:33 +0000 |
parents | 1405f4a2caf3 |
children | 6038cb6fcd30 |
comparison
equal
deleted
inserted
replaced
532:59dd6d1bcfb0 | 533:55ad231c9db7 |
---|---|
15 | 15 |
16 #ifndef _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ | 16 #ifndef _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ |
17 #define _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ | 17 #define _EDITABLE_DENSE_THREE_DIMENSIONAL_MODEL_H_ |
18 | 18 |
19 #include "DenseThreeDimensionalModel.h" | 19 #include "DenseThreeDimensionalModel.h" |
20 | |
21 #include <vector> | |
20 | 22 |
21 class EditableDenseThreeDimensionalModel : public DenseThreeDimensionalModel | 23 class EditableDenseThreeDimensionalModel : public DenseThreeDimensionalModel |
22 { | 24 { |
23 Q_OBJECT | 25 Q_OBJECT |
24 | 26 |
88 virtual bool isColumnAvailable(size_t x) const { return x < getWidth(); } | 90 virtual bool isColumnAvailable(size_t x) const { return x < getWidth(); } |
89 | 91 |
90 /** | 92 /** |
91 * Get the set of bin values at the given column. | 93 * Get the set of bin values at the given column. |
92 */ | 94 */ |
93 virtual void getColumn(size_t x, Column &) const; | 95 virtual Column getColumn(size_t x) const; |
94 | 96 |
95 /** | 97 /** |
96 * Get a single value, from the n'th bin of the given column. | 98 * Get a single value, from the n'th bin of the given column. |
97 */ | 99 */ |
98 virtual float getValueAt(size_t x, size_t n) const; | 100 virtual float getValueAt(size_t x, size_t n) const; |
118 virtual void toXml(QTextStream &out, | 120 virtual void toXml(QTextStream &out, |
119 QString indent = "", | 121 QString indent = "", |
120 QString extraAttributes = "") const; | 122 QString extraAttributes = "") const; |
121 | 123 |
122 protected: | 124 protected: |
123 typedef std::vector<Column> ValueMatrix; | 125 typedef QVector<Column> ValueMatrix; |
124 ValueMatrix m_data; | 126 ValueMatrix m_data; |
125 | 127 |
126 std::vector<QString> m_binNames; | 128 std::vector<QString> m_binNames; |
127 | 129 |
128 size_t m_sampleRate; | 130 size_t m_sampleRate; |