comparison data/model/EditableDenseThreeDimensionalModel.h @ 1206:659372323b45 tony-2.0-integration

Merge latest SV 3.0 branch code
author Chris Cannam
date Fri, 19 Aug 2016 15:58:57 +0100
parents 546d4e417346
children 2ff5e411151d
comparison
equal deleted inserted replaced
1136:e94719f941ba 1206:659372323b45
103 * Set the maximum value of the value in a bin. 103 * Set the maximum value of the value in a bin.
104 */ 104 */
105 virtual void setMaximumLevel(float sz); 105 virtual void setMaximumLevel(float sz);
106 106
107 /** 107 /**
108 * Return true if there are data available for the given column.
109 */
110 virtual bool isColumnAvailable(int x) const { return x < getWidth(); }
111
112 /**
113 * Get the set of bin values at the given column. 108 * Get the set of bin values at the given column.
114 */ 109 */
115 virtual Column getColumn(int x) const; 110 virtual Column getColumn(int x) const;
116 111
117 /** 112 /**
192 virtual void toXml(QTextStream &out, 187 virtual void toXml(QTextStream &out,
193 QString indent = "", 188 QString indent = "",
194 QString extraAttributes = "") const; 189 QString extraAttributes = "") const;
195 190
196 protected: 191 protected:
197 typedef QVector<Column> ValueMatrix; 192 typedef std::vector<Column> ValueMatrix;
198 ValueMatrix m_data; 193 ValueMatrix m_data;
199 194
200 // m_trunc is used for simple compression. If at least the top N 195 // m_trunc is used for simple compression. If at least the top N
201 // elements of column x (for N = some proportion of the column 196 // elements of column x (for N = some proportion of the column
202 // height) are equal to those of an earlier column x', then 197 // height) are equal to those of an earlier column x', then