comparison layer/SpectrumLayer.h @ 275:bbe57afe9d7d

* avoid trying to calculate fft from incomplete decoded audio file in spectrum
author Chris Cannam
date Mon, 02 Jul 2007 14:57:01 +0000
parents b9380f679f70
children 8acd30ed735c
comparison
equal deleted inserted replaced
274:b9380f679f70 275:bbe57afe9d7d
41 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, 41 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos,
42 std::vector<QRect> &extents) const; 42 std::vector<QRect> &extents) const;
43 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; 43 virtual void paintCrosshairs(View *, QPainter &, QPoint) const;
44 44
45 virtual QString getFeatureDescription(View *v, QPoint &) const; 45 virtual QString getFeatureDescription(View *v, QPoint &) const;
46
47 virtual void paint(View *v, QPainter &paint, QRect rect) const;
46 48
47 virtual PropertyList getProperties() const; 49 virtual PropertyList getProperties() const;
48 virtual QString getPropertyLabel(const PropertyName &) const; 50 virtual QString getPropertyLabel(const PropertyName &) const;
49 virtual PropertyType getPropertyType(const PropertyName &) const; 51 virtual PropertyType getPropertyType(const PropertyName &) const;
50 virtual QString getPropertyGroupName(const PropertyName &) const; 52 virtual QString getPropertyGroupName(const PropertyName &) const;
98 int m_channel; 100 int m_channel;
99 bool m_channelSet; 101 bool m_channelSet;
100 size_t m_windowSize; 102 size_t m_windowSize;
101 WindowType m_windowType; 103 WindowType m_windowType;
102 size_t m_windowHopLevel; 104 size_t m_windowHopLevel;
105 mutable bool m_newFFTNeeded;
103 106
104 void setupFFT(); 107 void setupFFT();
105 108
106 virtual void getBiasCurve(BiasCurve &) const; 109 virtual void getBiasCurve(BiasCurve &) const;
107 BiasCurve m_biasCurve; 110 BiasCurve m_biasCurve;