Mercurial > hg > svgui
diff layer/Layer.h @ 274:b9380f679f70
* Fix centre line position
* Fix failure to update overview when generating peaks from wav file
* Provide y-coordinate scale values and differences for spectrum measurement
mode, and fix values for waveform (inc dB for both)
* Add Printer colour scheme (may be futile)
author | Chris Cannam |
---|---|
date | Mon, 02 Jul 2007 13:04:17 +0000 |
parents | e954c00cbe55 |
children | 3c402c6052f6 |
line wrap: on
line diff
--- a/layer/Layer.h Fri Jun 29 16:50:59 2007 +0000 +++ b/layer/Layer.h Mon Jul 02 13:04:17 2007 +0000 @@ -367,6 +367,15 @@ } /** + * Return the difference between the values at the given y + * coordinates in the given view, and the unit of the difference. + * The default implementation just calls getYScaleValue twice and + * returns the difference, with the same unit. + */ + virtual bool getYScaleDifference(const View *v, int y0, int y1, + float &diff, QString &unit) const; + + /** * Get the number of vertical zoom steps available for this layer. * If vertical zooming is not available, return 0. The meaning of * "zooming" is entirely up to the layer -- changing the zoom