Skip to content

Struct QAccelPlot::GradientColorPayload

ClassList > QAccelPlot > GradientColorPayload

Render-thread snapshot of gradient stroke (line-color) parameters. More...

  • #include <GradientColorTypes.hpp>

Public Attributes

Type Name
Qt::Orientation direction = {Qt::Horizontal}
Gradient direction.
bool enabled = {false}
true when gradient stroke is active.
std::optional< qreal > gradientValueMax
Fixed max for gradient normalisation; std::nullopt = derived from data range.
std::optional< qreal > gradientValueMin
Fixed min for gradient normalisation; std::nullopt = derived from data range.
std::vector< GradientStopData > stops
Color stops in position order.

Public Functions

Type Name
bool isValid () const
Returns true if the payload has at least two stops and is enabled.

Detailed Description

Assembled on the main thread and consumed by the line renderer without touching the QObject hierarchy.

Public Attributes Documentation

variable direction

Gradient direction.

Qt::Orientation QAccelPlot::GradientColorPayload::direction;


variable enabled

true when gradient stroke is active.

bool QAccelPlot::GradientColorPayload::enabled;


variable gradientValueMax

Fixed max for gradient normalisation; std::nullopt = derived from data range.

std::optional<qreal> QAccelPlot::GradientColorPayload::gradientValueMax;


variable gradientValueMin

Fixed min for gradient normalisation; std::nullopt = derived from data range.

std::optional<qreal> QAccelPlot::GradientColorPayload::gradientValueMin;


variable stops

Color stops in position order.

std::vector<GradientStopData> QAccelPlot::GradientColorPayload::stops;


Public Functions Documentation

function isValid

Returns true if the payload has at least two stops and is enabled.

inline bool QAccelPlot::GradientColorPayload::isValid () const



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/effects/GradientColorTypes.hpp