diff layer/TimeInstantLayer.h @ 494:b3140e9e0665

* Some fairly simplistic code to set up layer type properties based on RDF data about feature types (both when running transforms and when importing features from RDF files).
author Chris Cannam
date Thu, 12 Feb 2009 15:26:43 +0000
parents e1a9e478b7f2
children 2e8194a30f40
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h	Wed Feb 11 14:44:14 2009 +0000
+++ b/layer/TimeInstantLayer.h	Thu Feb 12 15:26:43 2009 +0000
@@ -100,6 +100,14 @@
 
     void setProperties(const QXmlAttributes &attributes);
 
+    virtual ColourSignificance getLayerColourSignificance() const {
+        if (m_plotStyle == PlotSegmentation) {
+            return ColourHasMeaningfulValue;
+        } else {
+            return ColourDistinguishes;
+        }
+    }
+
 protected:
     SparseOneDimensionalModel::PointList getLocalPoints(View *v, int) const;