comparison layer/SpectrogramLayer.h @ 985:8053c0dfa919 simple-fft-model

Fill extent is not relevant in simple-fft-model code, as it's always the full extent
author Chris Cannam
date Wed, 01 Jul 2015 11:32:18 +0100
parents 28d05ae8741c
children 4f4f0e158ecf
comparison
equal deleted inserted replaced
975:b8187c83b93a 985:8053c0dfa919
244 protected slots: 244 protected slots:
245 void cacheInvalid(); 245 void cacheInvalid();
246 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); 246 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame);
247 247
248 void preferenceChanged(PropertyContainer::PropertyName name); 248 void preferenceChanged(PropertyContainer::PropertyName name);
249
250 void fillTimerTimedOut();
251 249
252 protected: 250 protected:
253 const DenseTimeValueModel *m_model; // I do not own this 251 const DenseTimeValueModel *m_model; // I do not own this
254 252
255 int m_channel; 253 int m_channel;
324 * before copying the image cache onto the window. (Remind me why 322 * before copying the image cache onto the window. (Remind me why
325 * we don't draw directly onto the cache?) 323 * we don't draw directly onto the cache?)
326 */ 324 */
327 mutable QImage m_drawBuffer; 325 mutable QImage m_drawBuffer;
328 326
329 mutable QTimer *m_updateTimer;
330
331 mutable sv_frame_t m_candidateFillStartFrame;
332 bool m_exiting; 327 bool m_exiting;
333 328
334 void initialisePalette(); 329 void initialisePalette();
335 void rotatePalette(int distance); 330 void rotatePalette(int distance);
336 331
371 int getFFTSize(const View *v) const; 366 int getFFTSize(const View *v) const;
372 FFTModel *getFFTModel(const View *v) const; 367 FFTModel *getFFTModel(const View *v) const;
373 Dense3DModelPeakCache *getPeakCache(const View *v) const; 368 Dense3DModelPeakCache *getPeakCache(const View *v) const;
374 void invalidateFFTModels(); 369 void invalidateFFTModels();
375 370
376 typedef std::pair<FFTModel *, sv_frame_t> FFTFillPair; // model, last fill 371 typedef std::map<const View *, FFTModel *> ViewFFTMap;
377 typedef std::map<const View *, FFTFillPair> ViewFFTMap;
378 typedef std::map<const View *, Dense3DModelPeakCache *> PeakCacheMap; 372 typedef std::map<const View *, Dense3DModelPeakCache *> PeakCacheMap;
379 mutable ViewFFTMap m_fftModels; 373 mutable ViewFFTMap m_fftModels;
380 mutable PeakCacheMap m_peakCaches; 374 mutable PeakCacheMap m_peakCaches;
381 mutable Model *m_sliceableModel; 375 mutable Model *m_sliceableModel;
382 376