Mercurial > hg > svcore
comparison data/model/DenseThreeDimensionalModel.h @ 887:68f3eaefe297
Prototype these in superclass
author | Chris Cannam |
---|---|
date | Thu, 06 Feb 2014 18:30:11 +0000 |
parents | fa32590f5a61 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
886:48410857b03c | 887:68f3eaefe297 |
---|---|
81 * that bin across all columns). | 81 * that bin across all columns). |
82 */ | 82 */ |
83 virtual QString getBinName(size_t n) const = 0; | 83 virtual QString getBinName(size_t n) const = 0; |
84 | 84 |
85 /** | 85 /** |
86 * Return true if the bins have values as well as names. If this | |
87 * returns true, getBinValue() may be used to retrieve the values. | |
88 */ | |
89 virtual bool hasBinValues() const { return false; } | |
90 | |
91 /** | |
92 * Return the value of bin n, if any. This is a "vertical scale" | |
93 * value which does not vary from one column to the next. This is | |
94 * only meaningful if hasBinValues() returns true. | |
95 */ | |
96 virtual float getBinValue(size_t n) const { return n; } | |
97 | |
98 /** | |
99 * Obtain the name of the unit of the values returned from | |
100 * getBinValue(), if any. | |
101 */ | |
102 virtual QString getBinValueUnit() const { return ""; } | |
103 | |
104 /** | |
86 * Estimate whether a logarithmic scale might be appropriate for | 105 * Estimate whether a logarithmic scale might be appropriate for |
87 * the value scale. | 106 * the value scale. |
88 */ | 107 */ |
89 virtual bool shouldUseLogValueScale() const = 0; | 108 virtual bool shouldUseLogValueScale() const = 0; |
90 | 109 |