comparison layer/TimeValueLayer.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
comparison
equal deleted inserted replaced
1361:2e3b3fadba27 1362:d79e21855aef
182 bool m_editing; 182 bool m_editing;
183 SparseTimeValueModel::Point m_originalPoint; 183 SparseTimeValueModel::Point m_originalPoint;
184 SparseTimeValueModel::Point m_editingPoint; 184 SparseTimeValueModel::Point m_editingPoint;
185 SparseTimeValueModel::EditCommand *m_editingCommand; 185 SparseTimeValueModel::EditCommand *m_editingCommand;
186 int m_colourMap; 186 int m_colourMap;
187 bool m_colourInverted;
187 PlotStyle m_plotStyle; 188 PlotStyle m_plotStyle;
188 VerticalScale m_verticalScale; 189 VerticalScale m_verticalScale;
189 bool m_drawSegmentDivisions; 190 bool m_drawSegmentDivisions;
190 bool m_derivative; 191 bool m_derivative;
191 192