comparison layer/SpectrogramLayer.h @ 1103:d84a0033b305 spectrogram-minor-refactor

Turn BinDisplay and BinScale into enum classes
author Chris Cannam
date Thu, 14 Jul 2016 15:13:37 +0100
parents cd22f74dc159
children 46cc4644206d
comparison
equal deleted inserted replaced
1102:36a981a0fa31 1103:d84a0033b305
147 ColourScale::Scale getColourScale() const; 147 ColourScale::Scale getColourScale() const;
148 148
149 /** 149 /**
150 * Specify the scale for the y axis. 150 * Specify the scale for the y axis.
151 */ 151 */
152 void setBinScale(Colour3DPlotRenderer::BinScale); 152 void setBinScale(BinScale);
153 Colour3DPlotRenderer::BinScale getBinScale() const; 153 BinScale getBinScale() const;
154 154
155 /** 155 /**
156 * Specify the processing of frequency bins for the y axis. 156 * Specify the processing of frequency bins for the y axis.
157 */ 157 */
158 void setBinDisplay(Colour3DPlotRenderer::BinDisplay); 158 void setBinDisplay(BinDisplay);
159 Colour3DPlotRenderer::BinDisplay getBinDisplay() const; 159 BinDisplay getBinDisplay() const;
160 160
161 /** 161 /**
162 * Specify the normalization mode for bin values. 162 * Specify the normalization mode for bin values.
163 */ 163 */
164 void setNormalization(ColumnOp::Normalization); 164 void setNormalization(ColumnOp::Normalization);
245 int m_maxFrequency; 245 int m_maxFrequency;
246 int m_initialMaxFrequency; 246 int m_initialMaxFrequency;
247 ColourScale::Scale m_colourScale; 247 ColourScale::Scale m_colourScale;
248 int m_colourMap; 248 int m_colourMap;
249 QColor m_crosshairColour; 249 QColor m_crosshairColour;
250 Colour3DPlotRenderer::BinScale m_binScale; 250 BinScale m_binScale;
251 Colour3DPlotRenderer::BinDisplay m_binDisplay; 251 BinDisplay m_binDisplay;
252 ColumnOp::Normalization m_normalization; 252 ColumnOp::Normalization m_normalization;
253 int m_lastEmittedZoomStep; 253 int m_lastEmittedZoomStep;
254 bool m_synchronous; 254 bool m_synchronous;
255 255
256 mutable bool m_haveDetailedScale; 256 mutable bool m_haveDetailedScale;