Mercurial > hg > svcore
comparison base/Layer.h @ 139:8ce30801f39a
* some work on scaling and zooming for spectrogram
author | Chris Cannam |
---|---|
date | Wed, 19 Jul 2006 16:55:29 +0000 |
parents | 53dfcd7db419 |
children | 82f529a08cf3 |
comparison
equal
deleted
inserted
replaced
138:6332e41c1619 | 139:8ce30801f39a |
---|---|
230 | 230 |
231 virtual PlayParameters *getPlayParameters(); | 231 virtual PlayParameters *getPlayParameters(); |
232 | 232 |
233 virtual bool needsTextLabelHeight() const { return false; } | 233 virtual bool needsTextLabelHeight() const { return false; } |
234 | 234 |
235 /** | |
236 * Return the minimum and maximum values for the y axis of the | |
237 * model in this layer, as well as whether the layer is configured | |
238 * to use a logarithmic y axis display. Also return the unit for | |
239 * these values if known. | |
240 * | |
241 * This function returns the "normal" extents for the layer, not | |
242 * necessarily the extents actually in use in the display. | |
243 */ | |
235 virtual bool getValueExtents(float &min, float &max, | 244 virtual bool getValueExtents(float &min, float &max, |
236 bool &logarithmic, QString &unit) const = 0; | 245 bool &logarithmic, QString &unit) const = 0; |
237 | 246 |
247 /** | |
248 * Return the minimum and maximum values within the displayed | |
249 * range for the y axis, if only a subset of the whole range of | |
250 * the model (returned by getValueExtents) is being displayed. | |
251 * Return false if the layer is not imposing a particular display | |
252 * extent (using the normal layer extents or deferring to whatever | |
253 * is in use for the same units elsewhere in the view). | |
254 */ | |
238 virtual bool getDisplayExtents(float &min, float &max) const { | 255 virtual bool getDisplayExtents(float &min, float &max) const { |
256 return false; | |
257 } | |
258 | |
259 /** | |
260 * Set the displayed minimum and maximum values for the y axis to | |
261 * the given range, if supported. Return false if not supported | |
262 * on this layer (and set nothing). In most cases, layers that | |
263 * return false for getDisplayExtents should also return false for | |
264 * this function. | |
265 */ | |
266 virtual bool setDisplayExtents(float min, float max) { | |
239 return false; | 267 return false; |
240 } | 268 } |
241 | 269 |
242 public slots: | 270 public slots: |
243 void showLayer(View *, bool show); | 271 void showLayer(View *, bool show); |