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.
variable enabled¶
true when gradient stroke 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 stops¶
Color stops in position order.
Public Functions Documentation¶
function isValid¶
Returns true if the payload has at least two stops and is enabled.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/effects/GradientColorTypes.hpp