Mercurial > hg > svgui
diff layer/VerticalScaleLayer.h @ 1216:dc2af6616c83
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Fri, 13 Jan 2017 10:29:50 +0000 |
parents | 6eb9e032e708 |
children |
line wrap: on
line diff
--- a/layer/VerticalScaleLayer.h Fri Mar 04 12:23:31 2016 +0000 +++ b/layer/VerticalScaleLayer.h Fri Jan 13 10:29:50 2017 +0000 @@ -16,11 +16,17 @@ #ifndef VERTICAL_SCALE_LAYER_H #define VERTICAL_SCALE_LAYER_H +/** + * Interface for layers in which the Y axis represents (or can + * sometimes represent, depending on the display mode) the sample + * value. For example, TimeValueLayer uses vertical scale when in + * point mode and so provides this interface. + */ class VerticalScaleLayer { public: - virtual int getYForValue(View *, double value) const = 0; - virtual double getValueForY(View *, int y) const = 0; + virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; + virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; virtual QString getScaleUnits() const = 0; };