comparison 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
comparison
equal deleted inserted replaced
1361:2e3b3fadba27 1362:d79e21855aef
109 109
110 protected: 110 protected:
111 DenseTimeValueModel *m_originModel; 111 DenseTimeValueModel *m_originModel;
112 int m_channel; 112 int m_channel;
113 bool m_channelSet; 113 bool m_channelSet;
114 int m_windowSize; 114 int m_windowSize;
115 WindowType m_windowType; 115 WindowType m_windowType;
116 int m_windowHopLevel; 116 int m_windowHopLevel;
117 bool m_showPeaks; 117 bool m_showPeaks;
118 mutable bool m_newFFTNeeded; 118 mutable bool m_newFFTNeeded;
119 119
120 mutable QMutex m_fftMutex; 120 mutable QMutex m_fftMutex;
121 121