diff 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
line wrap: on
line diff
--- a/layer/ColourScaleLayer.h	Fri Mar 04 12:23:31 2016 +0000
+++ b/layer/ColourScaleLayer.h	Fri Jan 13 10:29:50 2017 +0000
@@ -19,11 +19,20 @@
 #include <QString>
 #include <QColor>
 
+class LayerGeometryProvider;
+
+/**
+ * Interface for layers in which a colour scale represents (or can
+ * sometimes represent, depending on the display mode) the sample
+ * value. For example, TimeValueLayer uses colour scale when in
+ * segment mode and so provides this interface for use by the
+ * LogColourScale or LinearColourScale scale renderers.
+ */
 class ColourScaleLayer
 {
 public:
     virtual QString getScaleUnits() const = 0;
-    virtual QColor getColourForValue(View *v, double value) const = 0;
+    virtual QColor getColourForValue(LayerGeometryProvider *v, double value) const = 0;
 };
 
 #endif