comparison layer/SpectrumLayer.h @ 349:369a197737c7

* Various fixes to object lifetime management, particularly in the spectrum layer and for notification of main model deletion. The main purpose of this is to improve the behaviour of the spectrum, but I think it may also help with #1840922 Various crashes in Layer Summary window.
author Chris Cannam
date Wed, 23 Jan 2008 15:43:27 +0000
parents 2f83b6e3b8ca
children a13aa5320221 5b72899d692b
comparison
equal deleted inserted replaced
348:0093f351641c 349:369a197737c7
22 #include "base/Window.h" 22 #include "base/Window.h"
23 23
24 #include "data/model/DenseTimeValueModel.h" 24 #include "data/model/DenseTimeValueModel.h"
25 25
26 #include <QColor> 26 #include <QColor>
27 #include <QMutex>
27 28
28 class FFTModel; 29 class FFTModel;
29 30
30 class SpectrumLayer : public SliceLayer 31 class SpectrumLayer : public SliceLayer
31 { 32 {
111 WindowType m_windowType; 112 WindowType m_windowType;
112 size_t m_windowHopLevel; 113 size_t m_windowHopLevel;
113 bool m_showPeaks; 114 bool m_showPeaks;
114 mutable bool m_newFFTNeeded; 115 mutable bool m_newFFTNeeded;
115 116
117 mutable QMutex m_fftMutex;
118
116 void setupFFT(); 119 void setupFFT();
117 120
118 virtual void getBiasCurve(BiasCurve &) const; 121 virtual void getBiasCurve(BiasCurve &) const;
119 BiasCurve m_biasCurve; 122 BiasCurve m_biasCurve;
120 123