Mercurial > hg > svgui
comparison layer/VerticalScaleLayer.h @ 1148:c0d841cb8ab9 tony-2.0-integration
Merge latest SV 3.0 branch code
author | Chris Cannam |
---|---|
date | Fri, 19 Aug 2016 15:58:57 +0100 |
parents | 6eb9e032e708 |
children |
comparison
equal
deleted
inserted
replaced
1009:96cf499fad62 | 1148:c0d841cb8ab9 |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef VERTICAL_SCALE_LAYER_H | 16 #ifndef VERTICAL_SCALE_LAYER_H |
17 #define VERTICAL_SCALE_LAYER_H | 17 #define VERTICAL_SCALE_LAYER_H |
18 | 18 |
19 /** | |
20 * Interface for layers in which the Y axis represents (or can | |
21 * sometimes represent, depending on the display mode) the sample | |
22 * value. For example, TimeValueLayer uses vertical scale when in | |
23 * point mode and so provides this interface. | |
24 */ | |
19 class VerticalScaleLayer | 25 class VerticalScaleLayer |
20 { | 26 { |
21 public: | 27 public: |
22 virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; | 28 virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; |
23 virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; | 29 virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; |