Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 197:6b023411087b
* Work on harmonising colour and scale ranges between types of layer
* Add normalize options to colour 3d plot layer
author | Chris Cannam |
---|---|
date | Thu, 01 Feb 2007 14:31:28 +0000 |
parents | 22c99c8aa1e0 |
children | 748985c7e2c1 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Wed Jan 31 12:13:47 2007 +0000 +++ b/layer/SpectrogramLayer.h Thu Feb 01 14:31:28 2007 +0000 @@ -170,8 +170,8 @@ void setNormalizeVisibleArea(bool n); bool getNormalizeVisibleArea() const; - void setColourScheme(int scheme); - int getColourScheme() const; + void setColourMap(int map); + int getColourMap() const; /** * Specify the colourmap rotation for the colour scale. @@ -238,7 +238,7 @@ size_t m_maxFrequency; size_t m_initialMaxFrequency; ColourScale m_colourScale; - int m_colourScheme; + int m_colourMap; QColor m_crosshairColour; FrequencyScale m_frequencyScale; BinDisplay m_binDisplay; @@ -248,7 +248,7 @@ enum { NO_VALUE = 0 }; // colour index for unused pixels - class ColourMap + class Palette { public: QColor getColour(unsigned char index) const { @@ -263,7 +263,7 @@ QColor m_colours[256]; }; - ColourMap m_colourMap; + Palette m_palette; struct PixmapCache { @@ -283,8 +283,8 @@ mutable size_t m_candidateFillStartFrame; bool m_exiting; - void setColourmap(); - void rotateColourmap(int distance); + void initialisePalette(); + void rotatePalette(int distance); static float calculateFrequency(size_t bin, size_t windowSize,