diff layer/SpectrogramLayer.h @ 287:cd2492c5fe45

* Add SingleColourLayer to manage colours for layers that have a single predominant colour (i.e. most of them).
author Chris Cannam
date Thu, 12 Jul 2007 16:14:59 +0000
parents 86a112b5b319
children c0b9eec70639
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Wed Jul 11 20:46:37 2007 +0000
+++ b/layer/SpectrogramLayer.h	Thu Jul 12 16:14:59 2007 +0000
@@ -188,7 +188,10 @@
     }
 
     virtual bool isLayerOpaque() const { return true; }
-    virtual bool isLayerColourSignificant() const { return true; }
+
+    virtual ColourSignificance getLayerColourSignificance() const {
+        return ColourHasMeaningfulValue;
+    }
 
     float getYForFrequency(const View *v, float frequency) const;
     float getFrequencyForY(const View *v, int y) const;