comparison layer/ColourScaleLayer.h @ 1216:dc2af6616c83

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:50 +0000
parents c98a1fe7c7f5
children
comparison
equal deleted inserted replaced
1048:e8102ff5573b 1216:dc2af6616c83
17 #define COLOUR_SCALE_LAYER_H 17 #define COLOUR_SCALE_LAYER_H
18 18
19 #include <QString> 19 #include <QString>
20 #include <QColor> 20 #include <QColor>
21 21
22 class LayerGeometryProvider;
23
24 /**
25 * Interface for layers in which a colour scale represents (or can
26 * sometimes represent, depending on the display mode) the sample
27 * value. For example, TimeValueLayer uses colour scale when in
28 * segment mode and so provides this interface for use by the
29 * LogColourScale or LinearColourScale scale renderers.
30 */
22 class ColourScaleLayer 31 class ColourScaleLayer
23 { 32 {
24 public: 33 public:
25 virtual QString getScaleUnits() const = 0; 34 virtual QString getScaleUnits() const = 0;
26 virtual QColor getColourForValue(View *v, double value) const = 0; 35 virtual QColor getColourForValue(LayerGeometryProvider *v, double value) const = 0;
27 }; 36 };
28 37
29 #endif 38 #endif
30 39