Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Mon Jan 29 18:11:20 2007 +0000 +++ b/layer/SpectrogramLayer.h Wed Jan 31 12:13:47 2007 +0000 @@ -170,11 +170,8 @@ void setNormalizeVisibleArea(bool n); bool getNormalizeVisibleArea() const; - enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, - RedOnBlue, YellowOnBlack, BlueOnBlack, Rainbow }; - - void setColourScheme(ColourScheme scheme); - ColourScheme getColourScheme() const; + void setColourScheme(int scheme); + int getColourScheme() const; /** * Specify the colourmap rotation for the colour scale. @@ -241,7 +238,7 @@ size_t m_maxFrequency; size_t m_initialMaxFrequency; ColourScale m_colourScale; - ColourScheme m_colourScheme; + int m_colourScheme; QColor m_crosshairColour; FrequencyScale m_frequencyScale; BinDisplay m_binDisplay;