Mercurial > hg > svgui
diff layer/RegionLayer.h @ 1362:d79e21855aef
Add mechanism for saving/loading colour maps by name/id rather than by numerical index, for future compatibility when adding to or changing the supported colour maps. Add two new colour maps (and one old one). Write out backward-compatible numerical indices for use when reloading in older versions. Also add a mechanism to invert the colour map, though I don't think it turns out useful enough to include in the UI.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2018 13:21:56 +0100 |
parents | a34a2a25907c |
children | a18e78b9c78b |
line wrap: on
line diff
--- a/layer/RegionLayer.h Fri Oct 12 11:17:29 2018 +0100 +++ b/layer/RegionLayer.h Thu Oct 18 13:21:56 2018 +0100 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _REGION_LAYER_H_ -#define _REGION_LAYER_H_ +#ifndef SV_REGION_LAYER_H +#define SV_REGION_LAYER_H #include "SingleColourLayer.h" #include "VerticalScaleLayer.h" @@ -156,6 +156,7 @@ RegionModel::EditCommand *m_editingCommand; VerticalScale m_verticalScale; int m_colourMap; + bool m_colourInverted; PlotStyle m_plotStyle; typedef std::map<double, int> SpacingMap;