comparison data/model/DenseThreeDimensionalModel.h @ 1365:3382d914e110

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:44 +0000
parents fd40a5335968
children 51d6551d5244
comparison
equal deleted inserted replaced
1272:6a7ea3bd0e10 1365:3382d914e110
16 #ifndef _DENSE_THREE_DIMENSIONAL_MODEL_H_ 16 #ifndef _DENSE_THREE_DIMENSIONAL_MODEL_H_
17 #define _DENSE_THREE_DIMENSIONAL_MODEL_H_ 17 #define _DENSE_THREE_DIMENSIONAL_MODEL_H_
18 18
19 #include "Model.h" 19 #include "Model.h"
20 #include "TabularModel.h" 20 #include "TabularModel.h"
21 #include "base/ColumnOp.h"
21 #include "base/ZoomConstraint.h" 22 #include "base/ZoomConstraint.h"
22 #include "base/RealTime.h" 23 #include "base/RealTime.h"
23 24
24 #include <QMutex> 25 #include <QMutex>
25 #include <QVector> 26 #include <QVector>
53 /** 54 /**
54 * Return the maximum permissible value in each bin. 55 * Return the maximum permissible value in each bin.
55 */ 56 */
56 virtual float getMaximumLevel() const = 0; 57 virtual float getMaximumLevel() const = 0;
57 58
58 /** 59 typedef ColumnOp::Column Column;
59 * Return true if there are data available for the given column.
60 * This should return true only if getColumn(column) would not
61 * have to do any substantial work to calculate its return values.
62 * If this function returns false, it may still be possible to
63 * retrieve the column, but its values may have to be calculated.
64 */
65 virtual bool isColumnAvailable(int column) const = 0;
66
67 typedef QVector<float> Column;
68 60
69 /** 61 /**
70 * Get data from the given column of bin values. 62 * Get data from the given column of bin values.
71 */ 63 */
72 virtual Column getColumn(int column) const = 0; 64 virtual Column getColumn(int column) const = 0;