comparison layer/SliceLayer.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 51e6125627fa
children 86f319dd6ab9
comparison
equal deleted inserted replaced
1361:2e3b3fadba27 1362:d79e21855aef
140 140
141 virtual int getDefaultColourHint(bool dark, bool &impose); 141 virtual int getDefaultColourHint(bool dark, bool &impose);
142 142
143 const DenseThreeDimensionalModel *m_sliceableModel; 143 const DenseThreeDimensionalModel *m_sliceableModel;
144 int m_colourMap; 144 int m_colourMap;
145 bool m_colourInverted;
145 EnergyScale m_energyScale; 146 EnergyScale m_energyScale;
146 SamplingMode m_samplingMode; 147 SamplingMode m_samplingMode;
147 PlotStyle m_plotStyle; 148 PlotStyle m_plotStyle;
148 BinScale m_binScale; 149 BinScale m_binScale;
149 bool m_normalize; 150 bool m_normalize;