comparison layer/SpectrogramLayer.h @ 267:4ed1446ad604

* more on measurement tool -- pull out some logic from pane to layer &c still more to do
author Chris Cannam
date Thu, 21 Jun 2007 16:12:00 +0000
parents 11021509c4eb
children e954c00cbe55
comparison
equal deleted inserted replaced
266:aee39d8c0b83 267:4ed1446ad604
186 } 186 }
187 187
188 virtual bool isLayerOpaque() const { return true; } 188 virtual bool isLayerOpaque() const { return true; }
189 virtual bool isLayerColourSignificant() const { return true; } 189 virtual bool isLayerColourSignificant() const { return true; }
190 190
191 float getYForFrequency(View *v, float frequency) const; 191 float getYForFrequency(const View *v, float frequency) const;
192 float getFrequencyForY(View *v, int y) const; 192 float getFrequencyForY(const View *v, int y) const;
193 193
194 virtual int getCompletion(View *v) const; 194 virtual int getCompletion(View *v) const;
195 195
196 virtual bool getValueExtents(float &min, float &max, 196 virtual bool getValueExtents(float &min, float &max,
197 bool &logarithmic, QString &unit) const; 197 bool &logarithmic, QString &unit) const;
198 198
199 virtual bool getDisplayExtents(float &min, float &max) const; 199 virtual bool getDisplayExtents(float &min, float &max) const;
200 200
201 virtual bool setDisplayExtents(float min, float max); 201 virtual bool setDisplayExtents(float min, float max);
202 202
203 virtual bool getYScaleValue(View *, int, float &, QString &) const; 203 virtual bool getYScaleValue(const View *, int, float &, QString &) const;
204 204
205 virtual QString toXmlString(QString indent = "", 205 virtual QString toXmlString(QString indent = "",
206 QString extraAttributes = "") const; 206 QString extraAttributes = "") const;
207 207
208 void setProperties(const QXmlAttributes &attributes); 208 void setProperties(const QXmlAttributes &attributes);