Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 1018:072f0db59081 colourschemes
Make colour 3d plot layer colour a preference as well
author | Chris Cannam |
---|---|
date | Thu, 21 Jan 2016 09:28:57 +0000 |
parents | 7242fe160c19 |
children | 25ec2390fad3 |
comparison
equal
deleted
inserted
replaced
1017:9c890b7dfa83 | 1018:072f0db59081 |
---|---|
23 | 23 |
24 #include <QPainter> | 24 #include <QPainter> |
25 #include <QImage> | 25 #include <QImage> |
26 #include <QRect> | 26 #include <QRect> |
27 #include <QTextStream> | 27 #include <QTextStream> |
28 #include <QSettings> | |
28 | 29 |
29 #include <iostream> | 30 #include <iostream> |
30 | 31 |
31 #include <cassert> | 32 #include <cassert> |
32 | 33 |
58 m_smooth(false), | 59 m_smooth(false), |
59 m_peakResolution(256), | 60 m_peakResolution(256), |
60 m_miny(0), | 61 m_miny(0), |
61 m_maxy(0) | 62 m_maxy(0) |
62 { | 63 { |
63 | 64 QSettings settings; |
65 settings.beginGroup("Preferences"); | |
66 setColourMap(settings.value("colour-3d-plot-colour", ColourMapper::Green).toInt()); | |
67 settings.endGroup(); | |
64 } | 68 } |
65 | 69 |
66 Colour3DPlotLayer::~Colour3DPlotLayer() | 70 Colour3DPlotLayer::~Colour3DPlotLayer() |
67 { | 71 { |
68 delete m_cache; | 72 delete m_cache; |