cut 3.3.0
Loading...
Searching...
No Matches
QeColorMap Class Reference

The QeColorMap class is a composite widget used to represent a colormap using a gradient. More...

#include <CutWidgets.h>

Public Slots

void SetStartColor (const QColor &newStartColor)
 Replaces or sets the color at position 0.0.
 
void SetStopColor (const QColor &newStopColor)
 Replaces or sets the color at position 1.0.
 
void SetStartValue (const double &newStartValue)
 Setter for the double to be shown at the start value position in the gradient.
 

Signals

void StartValueChanged ()
 StartValueChanged Signal emitted when the string shown at the start of gradient changes.
 
void StoptValueChanged ()
 StartValueChanged Signal emitted when the string shown at the stop of gradient changes.
 
void StartColorChanged ()
 StartColorChanged Signal emitted when StartColor property changes.
 
void StopColorChanged ()
 StopColorChanged Signal emitted when StopColor property changes.
 

Public Member Functions

 QeColorMap (QWidget *parent=nullptr)
 QeColorMap default constructor.
 
double StartValue () const
 StartValue returns the Start Value string.
 
double StopValue () const
 StopValue returns the Stop Value string.
 
QColor GetStartColor () const
 GetStartColor returns the Start color of the gradient: position 0.0.
 
void ResetStartColor ()
 ResetStartColor resets the value to its default: white (255, 255, 255)
 
QColor GetStopColor () const
 GetStopColor returns the Stop color of the gradient: position 1.0.
 
void ResetStopColor ()
 ResetStartColor resets the value to its default: black (0, 0, 0)
 
void SetStopValue (const double &newStopValue)
 Setter for the double to be shown at the stop value position in the gradient.
 
void ClearStops ()
 Removes all stops: color maps points.
 

Properties

double startValue
 Sets the value to show in the label at the Start of the gradient.
 
double stopValue
 Sets the value to show in the label at the Stop of the gradient.
 
QColor startColor
 Start color (0.0) of the gradient.
 
QColor stopColor
 Stop color (1.0) of the gradient.
 

Detailed Description

The QeColorMap class is a composite widget used to represent a colormap using a gradient.

Constructor & Destructor Documentation

◆ QeColorMap()

QeColorMap::QeColorMap ( QWidget * parent = nullptr)

QeColorMap default constructor.

Parameters
parentQWidget that represents the parental relationship in the QObject tree.

Member Function Documentation

◆ GetStartColor()

QColor QeColorMap::GetStartColor ( ) const

GetStartColor returns the Start color of the gradient: position 0.0.

Returns
QColor with the color at that position

◆ GetStopColor()

QColor QeColorMap::GetStopColor ( ) const

GetStopColor returns the Stop color of the gradient: position 1.0.

Returns
QColor with the color at that position

◆ SetStartColor

void QeColorMap::SetStartColor ( const QColor & newStartColor)
slot

Replaces or sets the color at position 0.0.

Parameters
newStartColor

◆ SetStartValue

void QeColorMap::SetStartValue ( const double & newStartValue)
slot

Setter for the double to be shown at the start value position in the gradient.

Parameters
newStartValuedouble

◆ SetStopColor

void QeColorMap::SetStopColor ( const QColor & newStopColor)
slot

Replaces or sets the color at position 1.0.

Parameters
newStopColor

◆ SetStopValue()

void QeColorMap::SetStopValue ( const double & newStopValue)

Setter for the double to be shown at the stop value position in the gradient.

Parameters
newStartValuedouble

◆ StartValue()

double QeColorMap::StartValue ( ) const

StartValue returns the Start Value string.

Returns
QString with the value shown at the Start of the gradient

◆ StopValue()

double QeColorMap::StopValue ( ) const

StopValue returns the Stop Value string.

Returns
QString with the value shown at the Stop of the gradient

Property Documentation

◆ startColor

QColor QeColorMap::startColor
readwrite

Start color (0.0) of the gradient.

Accessors:
GetStartColor(), SetStartColor(QColor), StartColorChanged(QColor), ResetStartColor()

◆ stopColor

QColor QeColorMap::stopColor
readwrite

Stop color (1.0) of the gradient.

Accessors:
GetStopColor(), SetStopColor(QColor), StopColorChanged(QColor), ResetStopColor()

The documentation for this class was generated from the following files: