Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 1137:4e7ed3252d80 spectrogram-minor-refactor
Re-implement dB^2 (log-power) spectrogram setting
author | Chris Cannam |
---|---|
date | Thu, 04 Aug 2016 11:26:11 +0100 |
parents | 9ff838a64461 |
children | 8f4634b82e36 |
comparison
equal
deleted
inserted
replaced
1136:9ff838a64461 | 1137:4e7ed3252d80 |
---|---|
142 * scaling. The default is LogColourScale. | 142 * scaling. The default is LogColourScale. |
143 */ | 143 */ |
144 void setColourScale(ColourScaleType); | 144 void setColourScale(ColourScaleType); |
145 ColourScaleType getColourScale() const; | 145 ColourScaleType getColourScale() const; |
146 | 146 |
147 /** | |
148 * Specify multiple factor for colour scale. This is 2.0 for | |
149 * log-power spectrogram and 1.0 otherwise. | |
150 */ | |
151 void setColourScaleMultiple(double); | |
152 double getColourScaleMultiple() const; | |
153 | |
147 /** | 154 /** |
148 * Specify the scale for the y axis. | 155 * Specify the scale for the y axis. |
149 */ | 156 */ |
150 void setBinScale(BinScale); | 157 void setBinScale(BinScale); |
151 BinScale getBinScale() const; | 158 BinScale getBinScale() const; |
247 int m_initialRotation; | 254 int m_initialRotation; |
248 int m_minFrequency; | 255 int m_minFrequency; |
249 int m_maxFrequency; | 256 int m_maxFrequency; |
250 int m_initialMaxFrequency; | 257 int m_initialMaxFrequency; |
251 ColourScaleType m_colourScale; | 258 ColourScaleType m_colourScale; |
259 double m_colourScaleMultiple; | |
252 int m_colourMap; | 260 int m_colourMap; |
253 QColor m_crosshairColour; | 261 QColor m_crosshairColour; |
254 BinScale m_binScale; | 262 BinScale m_binScale; |
255 BinDisplay m_binDisplay; | 263 BinDisplay m_binDisplay; |
256 ColumnNormalization m_normalization; // of individual columns | 264 ColumnNormalization m_normalization; // of individual columns |
258 int m_lastEmittedZoomStep; | 266 int m_lastEmittedZoomStep; |
259 bool m_synchronous; | 267 bool m_synchronous; |
260 | 268 |
261 mutable bool m_haveDetailedScale; | 269 mutable bool m_haveDetailedScale; |
262 | 270 |
263 static ColourScaleType convertToColourScale(int value); | 271 static std::pair<ColourScaleType, double> convertToColourScale(int value); |
264 static int convertFromColourScale(ColourScaleType); | 272 static int convertFromColourScale(ColourScaleType type, double multiple); |
265 static std::pair<ColumnNormalization, bool> convertToColumnNorm(int value); | 273 static std::pair<ColumnNormalization, bool> convertToColumnNorm(int value); |
266 static int convertFromColumnNorm(ColumnNormalization norm, bool visible); | 274 static int convertFromColumnNorm(ColumnNormalization norm, bool visible); |
267 | 275 |
268 bool m_exiting; | 276 bool m_exiting; |
269 | 277 |