4#include "elt/cut/widgets/widgets/QeLinearGradient.hpp"
82 void AddColorStop(
double value, QColor color);
105 double d = newStartValue.toDouble(&ok);
118 double d = newStopValue.toDouble(&ok);
156 void RecreateColorMap();
157 QVector<double> CalculateTicks(
double start,
double end);
160 double m_startValueDouble;
161 double m_stopValueDouble;
164 QMap<double, QColor> m_colorStops;
void SetStartValue(const double &newStartValue)
Setter for the double to be shown at the start value position in the gradient.
Definition QeColorMap.cpp:47
void StopColorChanged()
StopColorChanged Signal emitted when StopColor property changes.
double StopValue() const
StopValue returns the Stop Value string.
Definition QeColorMap.cpp:42
void ResetStartColor()
ResetStartColor resets the value to its default: white (255, 255, 255)
Definition QeColorMap.cpp:117
void ClearStops()
Removes all stops: color maps points.
Definition QeColorMap.cpp:59
void StartColorChanged()
StartColorChanged Signal emitted when StartColor property changes.
void StartValueChanged()
StartValueChanged Signal emitted when the string shown at the start of gradient changes.
void SetStartColor(const QColor &newStartColor)
Replaces or sets the color at position 0.0.
Definition QeColorMap.cpp:108
QeColorMap(QWidget *parent=nullptr)
QeColorMap default constructor.
Definition QeColorMap.cpp:18
QColor GetStartColor() const
GetStartColor returns the Start color of the gradient: position 0.0.
Definition QeColorMap.cpp:103
void SetStopColor(const QColor &newStopColor)
Replaces or sets the color at position 1.0.
Definition QeColorMap.cpp:127
QColor stopColor
Stop color (1.0) of the gradient.
Definition QeColorMap.hpp:38
double startValue
Sets the value to show in the label at the Start of the gradient.
Definition QeColorMap.hpp:21
QColor GetStopColor() const
GetStopColor returns the Stop color of the gradient: position 1.0.
Definition QeColorMap.cpp:122
QColor startColor
Start color (0.0) of the gradient.
Definition QeColorMap.hpp:32
void ResetStopColor()
ResetStartColor resets the value to its default: black (0, 0, 0)
Definition QeColorMap.cpp:136
double stopValue
Sets the value to show in the label at the Stop of the gradient.
Definition QeColorMap.hpp:26
double StartValue() const
StartValue returns the Start Value string.
Definition QeColorMap.cpp:37
void StoptValueChanged()
StartValueChanged Signal emitted when the string shown at the stop of gradient changes.
void SetStopValue(const double &newStopValue)
Setter for the double to be shown at the stop value position in the gradient.
Definition QeColorMap.cpp:53