comparison layer/ColourScaleLayer.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 c98a1fe7c7f5
children
comparison
equal deleted inserted replaced
1009:96cf499fad62 1148:c0d841cb8ab9
19 #include <QString> 19 #include <QString>
20 #include <QColor> 20 #include <QColor>
21 21
22 class LayerGeometryProvider; 22 class LayerGeometryProvider;
23 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 */
24 class ColourScaleLayer 31 class ColourScaleLayer
25 { 32 {
26 public: 33 public:
27 virtual QString getScaleUnits() const = 0; 34 virtual QString getScaleUnits() const = 0;
28 virtual QColor getColourForValue(LayerGeometryProvider *v, double value) const = 0; 35 virtual QColor getColourForValue(LayerGeometryProvider *v, double value) const = 0;