diff layer/SpectrumLayer.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 fc9d9f1103fa
children 2df1af7ac752
line wrap: on
line diff
--- a/layer/SpectrumLayer.h	Fri Oct 12 11:17:29 2018 +0100
+++ b/layer/SpectrumLayer.h	Thu Oct 18 13:21:56 2018 +0100
@@ -111,9 +111,9 @@
     DenseTimeValueModel    *m_originModel;
     int                     m_channel;
     bool                    m_channelSet;
-    int                  m_windowSize;
+    int                     m_windowSize;
     WindowType              m_windowType;
-    int                  m_windowHopLevel;
+    int                     m_windowHopLevel;
     bool                    m_showPeaks;
     mutable bool            m_newFFTNeeded;