Mercurial > hg > svgui
diff layer/RegionLayer.h @ 427:1304dbe4542e
* Support importing features from RDF whose times are intervals rather
than only instants; import them into region or note models. Sadly
this makes RDF import much, much slower, because we need to work around
Rasqal's single-OPTIONAL limitation by repeatedly querying each feature
for time and range.
* Add segmentation view to region layer, and display label texts
author | Chris Cannam |
---|---|
date | Tue, 07 Oct 2008 12:42:17 +0000 |
parents | d332ad1ca66b |
children | ac349afdb23f |
line wrap: on
line diff
--- a/layer/RegionLayer.h Tue Sep 30 10:33:28 2008 +0000 +++ b/layer/RegionLayer.h Tue Oct 07 12:42:17 2008 +0000 @@ -75,6 +75,9 @@ int value) const; virtual void setProperty(const PropertyName &, int value); + void setFillColourMap(int); + int getFillColourMap() const { return m_colourMap; } + enum VerticalScale { AutoAlignScale, LinearScale, @@ -112,6 +115,7 @@ void getScaleExtents(View *, float &min, float &max, bool &log) const; int getYForValue(View *v, float value) const; float getValueForY(View *v, int y) const; + QColor getColourForValue(View *v, float value) const; virtual int getDefaultColourHint(bool dark, bool &impose); @@ -123,6 +127,7 @@ RegionModel::Point m_editingPoint; RegionModel::EditCommand *m_editingCommand; VerticalScale m_verticalScale; + int m_colourMap; PlotStyle m_plotStyle; void finish(RegionModel::EditCommand *command) {