Mercurial > hg > svgui
comparison layer/SpectrumLayer.h @ 374:64e84e5efb76 spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | c0b9eec70639 |
children |
comparison
equal
deleted
inserted
replaced
332:6440e280122e | 374:64e84e5efb76 |
---|---|
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 { |
50 return PositionTop; | 51 return PositionTop; |
51 } | 52 } |
52 | 53 |
53 virtual PropertyList getProperties() const; | 54 virtual PropertyList getProperties() const; |
54 virtual QString getPropertyLabel(const PropertyName &) const; | 55 virtual QString getPropertyLabel(const PropertyName &) const; |
56 virtual QString getPropertyIconName(const PropertyName &) const; | |
55 virtual PropertyType getPropertyType(const PropertyName &) const; | 57 virtual PropertyType getPropertyType(const PropertyName &) const; |
56 virtual QString getPropertyGroupName(const PropertyName &) const; | 58 virtual QString getPropertyGroupName(const PropertyName &) const; |
57 virtual int getPropertyRangeAndValue(const PropertyName &, | 59 virtual int getPropertyRangeAndValue(const PropertyName &, |
58 int *min, int *max, int *deflt) const; | 60 int *min, int *max, int *deflt) const; |
59 virtual QString getPropertyValueLabel(const PropertyName &, | 61 virtual QString getPropertyValueLabel(const PropertyName &, |
110 WindowType m_windowType; | 112 WindowType m_windowType; |
111 size_t m_windowHopLevel; | 113 size_t m_windowHopLevel; |
112 bool m_showPeaks; | 114 bool m_showPeaks; |
113 mutable bool m_newFFTNeeded; | 115 mutable bool m_newFFTNeeded; |
114 | 116 |
117 mutable QMutex m_fftMutex; | |
118 | |
115 void setupFFT(); | 119 void setupFFT(); |
116 | 120 |
117 virtual void getBiasCurve(BiasCurve &) const; | 121 virtual void getBiasCurve(BiasCurve &) const; |
118 BiasCurve m_biasCurve; | 122 BiasCurve m_biasCurve; |
119 | 123 |