comparison layer/SpectrogramLayer.h @ 196:22c99c8aa1e0

* Add separate colour mapping unit; use it in spectrogram (colour 3d plot to follow) * Add another colour scheme resembling that of a noted commercial application
author Chris Cannam
date Wed, 31 Jan 2007 12:13:47 +0000
parents 57c2350a8c40
children 6b023411087b
comparison
equal deleted inserted replaced
195:4a3bdde1ef13 196:22c99c8aa1e0
168 bool getNormalizeColumns() const; 168 bool getNormalizeColumns() const;
169 169
170 void setNormalizeVisibleArea(bool n); 170 void setNormalizeVisibleArea(bool n);
171 bool getNormalizeVisibleArea() const; 171 bool getNormalizeVisibleArea() const;
172 172
173 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, 173 void setColourScheme(int scheme);
174 RedOnBlue, YellowOnBlack, BlueOnBlack, Rainbow }; 174 int getColourScheme() const;
175
176 void setColourScheme(ColourScheme scheme);
177 ColourScheme getColourScheme() const;
178 175
179 /** 176 /**
180 * Specify the colourmap rotation for the colour scale. 177 * Specify the colourmap rotation for the colour scale.
181 */ 178 */
182 void setColourRotation(int); 179 void setColourRotation(int);
239 int m_colourRotation; 236 int m_colourRotation;
240 size_t m_minFrequency; 237 size_t m_minFrequency;
241 size_t m_maxFrequency; 238 size_t m_maxFrequency;
242 size_t m_initialMaxFrequency; 239 size_t m_initialMaxFrequency;
243 ColourScale m_colourScale; 240 ColourScale m_colourScale;
244 ColourScheme m_colourScheme; 241 int m_colourScheme;
245 QColor m_crosshairColour; 242 QColor m_crosshairColour;
246 FrequencyScale m_frequencyScale; 243 FrequencyScale m_frequencyScale;
247 BinDisplay m_binDisplay; 244 BinDisplay m_binDisplay;
248 bool m_normalizeColumns; 245 bool m_normalizeColumns;
249 bool m_normalizeVisibleArea; 246 bool m_normalizeVisibleArea;