Mercurial > hg > svgui
diff layer/RegionLayer.cpp @ 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 | 4806715f7a19 |
children | 1a0dfcbffaf1 |
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(); }