# HG changeset patch # User Chris Cannam # Date 1391711411 0 # Node ID 68f3eaefe2977fcfd313c8481a33fcaa7e4fe103 # Parent 48410857b03c3f07f8e3c4defeb1db63cee825fa Prototype these in superclass diff -r 48410857b03c -r 68f3eaefe297 data/model/DenseThreeDimensionalModel.h --- 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. */