##// END OF EJS Templates
Creates iterator for QCPColorMap...
Creates iterator for QCPColorMap Iterators will be used to call the method of computing the thresholds on the data of a QCPColorMap

File last commit:

r1008:76aa4956fdf0
r1017:d684e1205d9a
Show More
SqpColorScale.cpp
17 lines | 459 B | text/x-c | CppLexer
#include "Visualization/SqpColorScale.h"
namespace {
const auto DEFAULT_GRADIENT_PRESET = QCPColorGradient::gpJet;
const auto DEFAULT_RANGE = QCPRange{1.0e3, 1.7e7};
} // namespace
SqpColorScale::SqpColorScale(QCustomPlot &plot)
: m_Scale{new QCPColorScale{&plot}},
m_AutomaticThreshold{false},
m_GradientPreset{DEFAULT_GRADIENT_PRESET}
{
m_Scale->setGradient(m_GradientPreset);
m_Scale->setDataRange(DEFAULT_RANGE);
}