changeset 610:ece1af8cfffa

Display regions as segmentation if the output event type appears appropriate
author Chris Cannam
date Mon, 21 May 2012 23:26:17 +0100
parents 5f3f5c1e23e8
children 0c5330bbe313
files layer/RegionLayer.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/layer/RegionLayer.cpp	Mon Jan 30 17:22:48 2012 +0000
+++ b/layer/RegionLayer.cpp	Mon May 21 23:26:17 2012 +0100
@@ -63,6 +63,13 @@
 
 //    SVDEBUG << "RegionLayer::setModel(" << model << ")" << endl;
 
+    if (m_model && m_model->getRDFTypeURI().endsWith("Segment")) {
+        setPlotStyle(PlotSegmentation);
+    }
+    if (m_model && m_model->getRDFTypeURI().endsWith("Change")) {
+        setPlotStyle(PlotSegmentation);
+    }
+
     emit modelReplaced();
 }