# HG changeset patch # User Chris Cannam # Date 1337639177 -3600 # Node ID ece1af8cfffa9df7201105df834f8a3f1b8a7066 # Parent 5f3f5c1e23e8abfd70952f341cb57c2b05ee101c Display regions as segmentation if the output event type appears appropriate diff -r 5f3f5c1e23e8 -r ece1af8cfffa layer/RegionLayer.cpp --- 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(); }