Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
609:5f3f5c1e23e8 | 610:ece1af8cfffa |
---|---|
60 | 60 |
61 connect(m_model, SIGNAL(modelChanged()), this, SLOT(recalcSpacing())); | 61 connect(m_model, SIGNAL(modelChanged()), this, SLOT(recalcSpacing())); |
62 recalcSpacing(); | 62 recalcSpacing(); |
63 | 63 |
64 // SVDEBUG << "RegionLayer::setModel(" << model << ")" << endl; | 64 // SVDEBUG << "RegionLayer::setModel(" << model << ")" << endl; |
65 | |
66 if (m_model && m_model->getRDFTypeURI().endsWith("Segment")) { | |
67 setPlotStyle(PlotSegmentation); | |
68 } | |
69 if (m_model && m_model->getRDFTypeURI().endsWith("Change")) { | |
70 setPlotStyle(PlotSegmentation); | |
71 } | |
65 | 72 |
66 emit modelReplaced(); | 73 emit modelReplaced(); |
67 } | 74 } |
68 | 75 |
69 Layer::PropertyList | 76 Layer::PropertyList |