comparison layer/Colour3DPlotRenderer.cpp @ 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 c1f719094c25
children 7d28e7522dbd
comparison
equal deleted inserted replaced
1361:2e3b3fadba27 1362:d79e21855aef
33 #include <vector> 33 #include <vector>
34 34
35 #include <utility> 35 #include <utility>
36 using namespace std::rel_ops; 36 using namespace std::rel_ops;
37 37
38 #define DEBUG_COLOUR_PLOT_REPAINT 1 38 //#define DEBUG_COLOUR_PLOT_REPAINT 1
39 39
40 using namespace std; 40 using namespace std;
41 41
42 Colour3DPlotRenderer::RenderResult 42 Colour3DPlotRenderer::RenderResult
43 Colour3DPlotRenderer::render(const LayerGeometryProvider *v, QPainter &paint, QRect rect) 43 Colour3DPlotRenderer::render(const LayerGeometryProvider *v, QPainter &paint, QRect rect)