diff 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
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.
      */