comparison 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
comparison
equal deleted inserted replaced
533:a0e4176b0bf8 534:7a560380b6e2
79 virtual QString getPropertyGroupName(const PropertyName &) const; 79 virtual QString getPropertyGroupName(const PropertyName &) const;
80 virtual int getPropertyRangeAndValue(const PropertyName &, 80 virtual int getPropertyRangeAndValue(const PropertyName &,
81 int *min, int *max, int *deflt) const; 81 int *min, int *max, int *deflt) const;
82 virtual QString getPropertyValueLabel(const PropertyName &, 82 virtual QString getPropertyValueLabel(const PropertyName &,
83 int value) const; 83 int value) const;
84 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
84 virtual void setProperty(const PropertyName &, int value); 85 virtual void setProperty(const PropertyName &, int value);
85 virtual void setProperties(const QXmlAttributes &); 86 virtual void setProperties(const QXmlAttributes &);
86 87
87 enum ColourScale { 88 enum ColourScale {
88 LinearScale, 89 LinearScale,
94 void setColourScale(ColourScale); 95 void setColourScale(ColourScale);
95 ColourScale getColourScale() const { return m_colourScale; } 96 ColourScale getColourScale() const { return m_colourScale; }
96 97
97 void setColourMap(int map); 98 void setColourMap(int map);
98 int getColourMap() const; 99 int getColourMap() const;
100
101 /**
102 * Set the gain multiplier for sample values in this view.
103 * The default is 1.0.
104 */
105 void setGain(float gain);
106 float getGain() const;
99 107
100 enum BinScale { 108 enum BinScale {
101 LinearBinScale, 109 LinearBinScale,
102 LogBinScale 110 LogBinScale
103 }; 111 };
151 mutable size_t m_cacheValidEnd; 159 mutable size_t m_cacheValidEnd;
152 160
153 ColourScale m_colourScale; 161 ColourScale m_colourScale;
154 bool m_colourScaleSet; 162 bool m_colourScaleSet;
155 int m_colourMap; 163 int m_colourMap;
164 float m_gain;
156 BinScale m_binScale; 165 BinScale m_binScale;
157 bool m_normalizeColumns; 166 bool m_normalizeColumns;
158 bool m_normalizeVisibleArea; 167 bool m_normalizeVisibleArea;
159 bool m_invertVertical; 168 bool m_invertVertical;
160 bool m_opaque; 169 bool m_opaque;