Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 1023:74755fa6ea9e colourschemes
Avoid reusing a large paint width if the zoom level has changed (in case it has changed dramatically, as for example when the user hits the F key). Also some tidying and adjustment to timing stuff
author | Chris Cannam |
---|---|
date | Fri, 22 Jan 2016 18:12:41 +0000 |
parents | 2bd5eb6a6c6b |
children | 3bce4c45b681 |
comparison
equal
deleted
inserted
replaced
1022:2bd5eb6a6c6b | 1023:74755fa6ea9e |
---|---|
248 | 248 |
249 protected: | 249 protected: |
250 const DenseTimeValueModel *m_model; // I do not own this | 250 const DenseTimeValueModel *m_model; // I do not own this |
251 | 251 |
252 int m_channel; | 252 int m_channel; |
253 int m_windowSize; | 253 int m_windowSize; |
254 WindowType m_windowType; | 254 WindowType m_windowType; |
255 int m_windowHopLevel; | 255 int m_windowHopLevel; |
256 int m_zeroPadLevel; | 256 int m_zeroPadLevel; |
257 int m_fftSize; | 257 int m_fftSize; |
258 float m_gain; | 258 float m_gain; |
259 float m_initialGain; | 259 float m_initialGain; |
260 float m_threshold; | 260 float m_threshold; |
261 float m_initialThreshold; | 261 float m_initialThreshold; |
262 int m_colourRotation; | 262 int m_colourRotation; |
263 int m_initialRotation; | 263 int m_initialRotation; |
264 int m_minFrequency; | 264 int m_minFrequency; |
265 int m_maxFrequency; | 265 int m_maxFrequency; |
266 int m_initialMaxFrequency; | 266 int m_initialMaxFrequency; |
267 ColourScale m_colourScale; | 267 ColourScale m_colourScale; |
268 int m_colourMap; | 268 int m_colourMap; |
269 QColor m_crosshairColour; | 269 QColor m_crosshairColour; |
270 FrequencyScale m_frequencyScale; | 270 FrequencyScale m_frequencyScale; |
271 BinDisplay m_binDisplay; | 271 BinDisplay m_binDisplay; |
273 int m_lastEmittedZoomStep; | 273 int m_lastEmittedZoomStep; |
274 bool m_synchronous; | 274 bool m_synchronous; |
275 | 275 |
276 mutable bool m_haveDetailedScale; | 276 mutable bool m_haveDetailedScale; |
277 mutable int m_lastPaintBlockWidth; | 277 mutable int m_lastPaintBlockWidth; |
278 mutable RealTime m_lastPaintTime; | 278 mutable double m_lastPaintTime; // seconds |
279 | 279 |
280 enum { NO_VALUE = 0 }; // colour index for unused pixels | 280 enum { NO_VALUE = 0 }; // colour index for unused pixels |
281 | 281 |
282 class Palette | 282 class Palette |
283 { | 283 { |