Mercurial > hg > svcore
diff data/model/DenseThreeDimensionalModel.h @ 912:2175c2ebd5c6 tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 14 May 2014 09:58:07 +0100 |
parents | 68f3eaefe297 |
children | 59e7fe1b1003 |
line wrap: on
line diff
--- a/data/model/DenseThreeDimensionalModel.h Sat Apr 26 22:22:19 2014 +0100 +++ b/data/model/DenseThreeDimensionalModel.h Wed May 14 09:58:07 2014 +0100 @@ -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. */