##// END OF EJS Templates
Creates color scale for Sciqlop...
Creates color scale for Sciqlop The struct holds a QCPColorScale and some other properties

File last commit:

r1008:76aa4956fdf0
r1008:76aa4956fdf0
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);
}