Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 115:47cb32bb35ab
* Restore progress updates to spectrogram
author | Chris Cannam |
---|---|
date | Wed, 05 Jul 2006 16:15:22 +0000 |
parents | 991de8783cf5 |
children | 508276c923ba |
comparison
equal
deleted
inserted
replaced
114:991de8783cf5 | 115:47cb32bb35ab |
---|---|
184 virtual bool isLayerOpaque() const { return true; } | 184 virtual bool isLayerOpaque() const { return true; } |
185 | 185 |
186 float getYForFrequency(View *v, float frequency) const; | 186 float getYForFrequency(View *v, float frequency) const; |
187 float getFrequencyForY(View *v, int y) const; | 187 float getFrequencyForY(View *v, int y) const; |
188 | 188 |
189 virtual int getCompletion() const; | 189 virtual int getCompletion(View *v) const; |
190 | 190 |
191 virtual bool getValueExtents(float &min, float &max, | 191 virtual bool getValueExtents(float &min, float &max, |
192 bool &logarithmic, QString &unit) const; | 192 bool &logarithmic, QString &unit) const; |
193 | 193 |
194 virtual bool getDisplayExtents(float &min, float &max) const; | 194 virtual bool getDisplayExtents(float &min, float &max) const; |
262 mutable QImage m_drawBuffer; | 262 mutable QImage m_drawBuffer; |
263 | 263 |
264 mutable QTimer *m_updateTimer; | 264 mutable QTimer *m_updateTimer; |
265 | 265 |
266 mutable size_t m_candidateFillStartFrame; | 266 mutable size_t m_candidateFillStartFrame; |
267 mutable size_t m_lastFillExtent; | |
268 bool m_exiting; | 267 bool m_exiting; |
269 | 268 |
270 void setColourmap(); | 269 void setColourmap(); |
271 void rotateColourmap(int distance); | 270 void rotateColourmap(int distance); |
272 | 271 |
311 | 310 |
312 size_t getZeroPadLevel(const View *v) const; | 311 size_t getZeroPadLevel(const View *v) const; |
313 size_t getFFTSize(const View *v) const; | 312 size_t getFFTSize(const View *v) const; |
314 FFTFuzzyAdapter *getFFTAdapter(const View *v) const; | 313 FFTFuzzyAdapter *getFFTAdapter(const View *v) const; |
315 void invalidateFFTAdapters(); | 314 void invalidateFFTAdapters(); |
316 typedef std::map<const View *, FFTFuzzyAdapter *> ViewFFTMap; | 315 |
316 typedef std::pair<FFTFuzzyAdapter *, int> FFTFillPair; // adapter, last fill | |
317 typedef std::map<const View *, FFTFillPair> ViewFFTMap; | |
317 mutable ViewFFTMap m_fftAdapters; | 318 mutable ViewFFTMap m_fftAdapters; |
318 }; | 319 }; |
319 | 320 |
320 #endif | 321 #endif |