comparison layer/SpectrogramLayer.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 b6cca362bbf4
comparison
equal deleted inserted replaced
1361:2e3b3fadba27 1362:d79e21855aef
256 int m_maxFrequency; 256 int m_maxFrequency;
257 int m_initialMaxFrequency; 257 int m_initialMaxFrequency;
258 ColourScaleType m_colourScale; 258 ColourScaleType m_colourScale;
259 double m_colourScaleMultiple; 259 double m_colourScaleMultiple;
260 int m_colourMap; 260 int m_colourMap;
261 bool m_colourInverted;
261 mutable QColor m_crosshairColour; 262 mutable QColor m_crosshairColour;
262 BinScale m_binScale; 263 BinScale m_binScale;
263 BinDisplay m_binDisplay; 264 BinDisplay m_binDisplay;
264 ColumnNormalization m_normalization; // of individual columns 265 ColumnNormalization m_normalization; // of individual columns
265 bool m_normalizeVisibleArea; 266 bool m_normalizeVisibleArea;