Mercurial > hg > svgui
comparison layer/VerticalScaleLayer.h @ 1066:c98a1fe7c7f5 spectrogram-minor-refactor
Comments
author | Chris Cannam |
---|---|
date | Thu, 23 Jun 2016 10:51:45 +0100 |
parents | 94e4952a6774 |
children | 6eb9e032e708 |
comparison
equal
deleted
inserted
replaced
1065:85e49aa7fe77 | 1066:c98a1fe7c7f5 |
---|---|
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 in point mode. | |
23 */ | |
19 class VerticalScaleLayer | 24 class VerticalScaleLayer |
20 { | 25 { |
21 public: | 26 public: |
22 virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; | 27 virtual int getYForValue(LayerGeometryProvider *, double value) const = 0; |
23 virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; | 28 virtual double getValueForY(LayerGeometryProvider *, int y) const = 0; |