Skip to content

Struct QAccelPlot::GradientFillPayload

ClassList > QAccelPlot > GradientFillPayload

Render-thread snapshot of gradient fill (area-under-curve) parameters. More...

  • #include <GradientColorTypes.hpp>

Public Attributes

Type Name
GradientFillBaseline baseline = {GradientFillBaseline::AxisMinimum}
Baseline mode.
qreal baselineValue = {0.0}
Fixed baseline data value when mode is Value .
Qt::Orientation direction = {Qt::Horizontal}
Gradient direction.
bool enabled = {false}
true when gradient fill 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.
float opacity = {1.0f}
Overall opacity of the fill in [0, 1].
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, is enabled, and has non-zero opacity.

Detailed Description

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

Public Attributes Documentation

variable baseline

Baseline mode.

GradientFillBaseline QAccelPlot::GradientFillPayload::baseline;


variable baselineValue

Fixed baseline data value when mode is Value .

qreal QAccelPlot::GradientFillPayload::baselineValue;


variable direction

Gradient direction.

Qt::Orientation QAccelPlot::GradientFillPayload::direction;


variable enabled

true when gradient fill is active.

bool QAccelPlot::GradientFillPayload::enabled;


variable gradientValueMax

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

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


variable gradientValueMin

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

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


variable opacity

Overall opacity of the fill in [0, 1].

float QAccelPlot::GradientFillPayload::opacity;


variable stops

Color stops in position order.

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


Public Functions Documentation

function isValid

Returns true if the payload has at least two stops, is enabled, and has non-zero opacity.

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



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