comparison data/model/DenseThreeDimensionalModel.h @ 533:55ad231c9db7

* try some qvectors
author Chris Cannam
date Thu, 22 Jan 2009 17:58:33 +0000
parents 83eae5239db6
children fa32590f5a61
comparison
equal deleted inserted replaced
532:59dd6d1bcfb0 533:55ad231c9db7
20 #include "TabularModel.h" 20 #include "TabularModel.h"
21 #include "base/ZoomConstraint.h" 21 #include "base/ZoomConstraint.h"
22 #include "base/RealTime.h" 22 #include "base/RealTime.h"
23 23
24 #include <QMutex> 24 #include <QMutex>
25 #include <vector> 25 #include <QVector>
26 26
27 class DenseThreeDimensionalModel : public Model, 27 class DenseThreeDimensionalModel : public Model,
28 public TabularModel 28 public TabularModel
29 { 29 {
30 Q_OBJECT 30 Q_OBJECT
62 * If this function returns false, it may still be possible to 62 * If this function returns false, it may still be possible to
63 * retrieve the column, but its values may have to be calculated. 63 * retrieve the column, but its values may have to be calculated.
64 */ 64 */
65 virtual bool isColumnAvailable(size_t column) const = 0; 65 virtual bool isColumnAvailable(size_t column) const = 0;
66 66
67 typedef std::vector<float> Column; 67 typedef QVector<float> Column;
68 68
69 /** 69 /**
70 * Get data from the given column of bin values. 70 * Get data from the given column of bin values.
71 */ 71 */
72 virtual void getColumn(size_t column, Column &result) const = 0; 72 virtual Column getColumn(size_t column) const = 0;
73 73
74 /** 74 /**
75 * Get the single data point from the n'th bin of the given column. 75 * Get the single data point from the n'th bin of the given column.
76 */ 76 */
77 virtual float getValueAt(size_t column, size_t n) const = 0; 77 virtual float getValueAt(size_t column, size_t n) const = 0;