Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 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 | 0990b95140e3 |
children | 1341e95eeae9 |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Wed Feb 11 14:44:14 2009 +0000 +++ b/layer/TimeValueLayer.cpp Thu Feb 12 15:26:43 2009 +0000 @@ -69,6 +69,13 @@ m_scaleMinimum = 0; m_scaleMaximum = 0; + if (m_model && m_model->getRDFTypeURI().endsWith("Segment")) { + setPlotStyle(PlotSegmentation); + } + if (m_model && m_model->getRDFTypeURI().endsWith("Change")) { + setPlotStyle(PlotSegmentation); + } + // std::cerr << "TimeValueLayer::setModel(" << model << ")" << std::endl; emit modelReplaced();