Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 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 | 755243c67f59 |
children | 1341e95eeae9 |
comparison
equal
deleted
inserted
replaced
493:4afdcecbd62e | 494:b3140e9e0665 |
---|---|
127 virtual void toXml(QTextStream &stream, QString indent = "", | 127 virtual void toXml(QTextStream &stream, QString indent = "", |
128 QString extraAttributes = "") const; | 128 QString extraAttributes = "") const; |
129 | 129 |
130 void setProperties(const QXmlAttributes &attributes); | 130 void setProperties(const QXmlAttributes &attributes); |
131 | 131 |
132 virtual ColourSignificance getLayerColourSignificance() const { | |
133 if (m_plotStyle == PlotSegmentation) { | |
134 return ColourHasMeaningfulValue; | |
135 } else { | |
136 return ColourDistinguishes; | |
137 } | |
138 } | |
139 | |
132 protected: | 140 protected: |
133 void getScaleExtents(View *, float &min, float &max, bool &log) const; | 141 void getScaleExtents(View *, float &min, float &max, bool &log) const; |
134 int getYForValue(View *, float value) const; | 142 int getYForValue(View *, float value) const; |
135 float getValueForY(View *, int y) const; | 143 float getValueForY(View *, int y) const; |
136 QColor getColourForValue(View *v, float value) const; | 144 QColor getColourForValue(View *v, float value) const; |