diff layer/Colour3DPlotLayer.h @ 534:7a560380b6e2

* Fixes to log bin scale; add colour scale gain
author Chris Cannam
date Thu, 21 May 2009 16:55:57 +0000
parents 188049db73fa
children 78f9436195b1
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h	Tue May 19 16:26:58 2009 +0000
+++ b/layer/Colour3DPlotLayer.h	Thu May 21 16:55:57 2009 +0000
@@ -81,6 +81,7 @@
                                          int *min, int *max, int *deflt) const;
     virtual QString getPropertyValueLabel(const PropertyName &,
 					  int value) const;
+    virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
     virtual void setProperty(const PropertyName &, int value);
     virtual void setProperties(const QXmlAttributes &);
     
@@ -97,6 +98,13 @@
     void setColourMap(int map);
     int getColourMap() const;
 
+    /**
+     * Set the gain multiplier for sample values in this view.
+     * The default is 1.0.
+     */
+    void setGain(float gain);
+    float getGain() const;
+
     enum BinScale {
 	LinearBinScale,
 	LogBinScale
@@ -153,6 +161,7 @@
     ColourScale m_colourScale;
     bool        m_colourScaleSet;
     int         m_colourMap;
+    float       m_gain;
     BinScale    m_binScale;
     bool        m_normalizeColumns;
     bool        m_normalizeVisibleArea;