Mercurial > hg > svcore
changeset 887:68f3eaefe297
Prototype these in superclass
author | Chris Cannam |
---|---|
date | Thu, 06 Feb 2014 18:30:11 +0000 |
parents | 48410857b03c |
children | 7f97a4d9d14f |
files | data/model/DenseThreeDimensionalModel.h |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/data/model/DenseThreeDimensionalModel.h Thu Feb 06 18:26:18 2014 +0000 +++ b/data/model/DenseThreeDimensionalModel.h Thu Feb 06 18:30:11 2014 +0000 @@ -83,6 +83,25 @@ virtual QString getBinName(size_t n) const = 0; /** + * Return true if the bins have values as well as names. If this + * returns true, getBinValue() may be used to retrieve the values. + */ + virtual bool hasBinValues() const { return false; } + + /** + * Return the value of bin n, if any. This is a "vertical scale" + * value which does not vary from one column to the next. This is + * only meaningful if hasBinValues() returns true. + */ + virtual float getBinValue(size_t n) const { return n; } + + /** + * Obtain the name of the unit of the values returned from + * getBinValue(), if any. + */ + virtual QString getBinValueUnit() const { return ""; } + + /** * Estimate whether a logarithmic scale might be appropriate for * the value scale. */