comparison layer/WaveformLayer.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
51 51
52 void setModel(const RangeSummarisableTimeValueModel *model); 52 void setModel(const RangeSummarisableTimeValueModel *model);
53 53
54 virtual PropertyList getProperties() const; 54 virtual PropertyList getProperties() const;
55 virtual QString getPropertyLabel(const PropertyName &) const; 55 virtual QString getPropertyLabel(const PropertyName &) const;
56 virtual QString getPropertyIconName(const PropertyName &) const;
56 virtual PropertyType getPropertyType(const PropertyName &) const; 57 virtual PropertyType getPropertyType(const PropertyName &) const;
57 virtual QString getPropertyGroupName(const PropertyName &) const; 58 virtual QString getPropertyGroupName(const PropertyName &) const;
58 virtual int getPropertyRangeAndValue(const PropertyName &, 59 virtual int getPropertyRangeAndValue(const PropertyName &,
59 int *min, int *max, int *deflt) const; 60 int *min, int *max, int *deflt) const;
60 virtual QString getPropertyValueLabel(const PropertyName &, 61 virtual QString getPropertyValueLabel(const PropertyName &,
199 200
200 int getYForValue(const View *v, float value, size_t channel) const; 201 int getYForValue(const View *v, float value, size_t channel) const;
201 202
202 float getValueForY(const View *v, int y, size_t &channel) const; 203 float getValueForY(const View *v, int y, size_t &channel) const;
203 204
205 bool getSourceFramesForX(View *v, int x, size_t modelZoomLevel,
206 size_t &f0, size_t &f1) const;
207
208 float getNormalizeGain(View *v, int channel) const;
209
204 virtual void flagBaseColourChanged() { m_cacheValid = false; } 210 virtual void flagBaseColourChanged() { m_cacheValid = false; }
205 211
206 float m_gain; 212 float m_gain;
207 bool m_autoNormalize; 213 bool m_autoNormalize;
208 bool m_showMeans; 214 bool m_showMeans;