Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 988:4f4f0e158ecf 3.0-integration
Merge from branch simple-fft-model
author | Chris Cannam |
---|---|
date | Wed, 01 Jul 2015 13:27:03 +0100 |
parents | 98827470ada2 8053c0dfa919 |
children | 2bd5eb6a6c6b |
comparison
equal
deleted
inserted
replaced
987:3f7cdfc56dce | 988:4f4f0e158ecf |
---|---|
243 protected slots: | 243 protected slots: |
244 void cacheInvalid(); | 244 void cacheInvalid(); |
245 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); | 245 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); |
246 | 246 |
247 void preferenceChanged(PropertyContainer::PropertyName name); | 247 void preferenceChanged(PropertyContainer::PropertyName name); |
248 | |
249 void fillTimerTimedOut(); | |
250 | 248 |
251 protected: | 249 protected: |
252 const DenseTimeValueModel *m_model; // I do not own this | 250 const DenseTimeValueModel *m_model; // I do not own this |
253 | 251 |
254 int m_channel; | 252 int m_channel; |
321 * before copying the image cache onto the window. (Remind me why | 319 * before copying the image cache onto the window. (Remind me why |
322 * we don't draw directly onto the cache?) | 320 * we don't draw directly onto the cache?) |
323 */ | 321 */ |
324 mutable QImage m_drawBuffer; | 322 mutable QImage m_drawBuffer; |
325 | 323 |
326 mutable QTimer *m_updateTimer; | |
327 | |
328 mutable sv_frame_t m_candidateFillStartFrame; | |
329 bool m_exiting; | 324 bool m_exiting; |
330 | 325 |
331 void initialisePalette(); | 326 void initialisePalette(); |
332 void rotatePalette(int distance); | 327 void rotatePalette(int distance); |
333 | 328 |
368 int getFFTSize(const LayerGeometryProvider *v) const; | 363 int getFFTSize(const LayerGeometryProvider *v) const; |
369 FFTModel *getFFTModel(const LayerGeometryProvider *v) const; | 364 FFTModel *getFFTModel(const LayerGeometryProvider *v) const; |
370 Dense3DModelPeakCache *getPeakCache(const LayerGeometryProvider *v) const; | 365 Dense3DModelPeakCache *getPeakCache(const LayerGeometryProvider *v) const; |
371 void invalidateFFTModels(); | 366 void invalidateFFTModels(); |
372 | 367 |
373 typedef std::pair<FFTModel *, sv_frame_t> FFTFillPair; // model, last fill | 368 typedef std::map<const View *, FFTModel *> ViewFFTMap; |
374 typedef std::map<const View *, FFTFillPair> ViewFFTMap; | |
375 typedef std::map<const View *, Dense3DModelPeakCache *> PeakCacheMap; | 369 typedef std::map<const View *, Dense3DModelPeakCache *> PeakCacheMap; |
376 mutable ViewFFTMap m_fftModels; | 370 mutable ViewFFTMap m_fftModels; |
377 mutable PeakCacheMap m_peakCaches; | 371 mutable PeakCacheMap m_peakCaches; |
378 mutable Model *m_sliceableModel; | 372 mutable Model *m_sliceableModel; |
379 | 373 |