Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1048:e8102ff5573b | 1216:dc2af6616c83 |
---|---|
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(View *, double value) const = 0; | 28 virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; |
23 virtual double getValueForY(View *, int y) const = 0; | 29 virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; |
24 virtual QString getScaleUnits() const = 0; | 30 virtual QString getScaleUnits() const = 0; |
25 }; | 31 }; |
26 | 32 |
27 #endif | 33 #endif |
28 | 34 |