comparison layer/VerticalScaleLayer.h @ 701:084f65094203

Extend numerical and colour scales (and piano where applicable) to note and region layers
author Chris Cannam
date Wed, 04 Dec 2013 13:39:41 +0000
parents ad7623c39396
children e0f08e108064
comparison
equal deleted inserted replaced
700:7846175403f1 701:084f65094203
17 #define VERTICAL_SCALE_LAYER_H 17 #define VERTICAL_SCALE_LAYER_H
18 18
19 class VerticalScaleLayer 19 class VerticalScaleLayer
20 { 20 {
21 public: 21 public:
22 virtual void getScaleExtents(View *, float &min, float &max, bool &log) const = 0;
23 virtual int getYForValue(View *, float value) const = 0; 22 virtual int getYForValue(View *, float value) const = 0;
24 virtual float getValueForY(View *, int y) const = 0; 23 virtual float getValueForY(View *, int y) const = 0;
25 virtual QString getScaleUnits() const = 0; 24 virtual QString getScaleUnits() const = 0;
26 }; 25 };
27 26