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.
variable baselineValue¶
Fixed baseline data value when mode is Value .
variable direction¶
Gradient direction.
variable enabled¶
true when gradient fill is active.
variable gradientValueMax¶
Fixed max for gradient normalisation; std::nullopt = derived from data range.
variable gradientValueMin¶
Fixed min for gradient normalisation; std::nullopt = derived from data range.
variable opacity¶
Overall opacity of the fill in [0, 1].
variable stops¶
Color stops in position order.
Public Functions Documentation¶
function isValid¶
Returns true if the payload has at least two stops, is enabled, and has non-zero opacity.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/effects/GradientColorTypes.hpp