QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
Represents a color stop within a QgsGradientColorRamp color ramp. More...
#include <qgscolorrampimpl.h>
Public Member Functions | |
QgsGradientStop (double offset, const QColor &color) | |
Constructor for QgsGradientStop. More... | |
QColor::Spec | colorSpec () const |
Returns the color specification in which the color component interpolation will occur. More... | |
Qgis::AngularDirection | direction () const |
Returns the direction to traverse the color wheel using when interpolating hue-based color specifications. More... | |
bool | operator!= (const QgsGradientStop &other) const |
bool | operator== (const QgsGradientStop &other) const |
void | setColorSpec (QColor::Spec spec) |
Sets the color specification in which the color component interpolation will occur. More... | |
void | setDirection (Qgis::AngularDirection direction) |
Sets the direction to traverse the color wheel using when interpolating hue-based color specifications. More... | |
Public Attributes | |
QColor | color |
Gradient color at stop. More... | |
double | offset |
Relative positional offset, between 0 and 1. More... | |
Friends | |
class | QgsGradientColorRamp |
Represents a color stop within a QgsGradientColorRamp color ramp.
Definition at line 38 of file qgscolorrampimpl.h.
QgsGradientStop::QgsGradientStop | ( | double | offset, |
const QColor & | color | ||
) |
Constructor for QgsGradientStop.
offset | positional offset for stop, between 0 and 1.0 |
color | color for stop |
Definition at line 175 of file qgscolorrampimpl.cpp.
|
inline |
Returns the color specification in which the color component interpolation will occur.
For multi-stop gradients this color spec will be used for the portion of the color ramp leading into the current stop.
Definition at line 73 of file qgscolorrampimpl.h.
|
inline |
Returns the direction to traverse the color wheel using when interpolating hue-based color specifications.
For multi-stop gradients this direction will be used for the portion of the color ramp leading into the current stop.
Definition at line 98 of file qgscolorrampimpl.h.
|
inline |
Definition at line 59 of file qgscolorrampimpl.h.
|
inline |
Definition at line 54 of file qgscolorrampimpl.h.
void QgsGradientStop::setColorSpec | ( | QColor::Spec | spec | ) |
Sets the color specification in which the color component interpolation will occur.
Only QColor::Spec::Rgb, QColor::Spec::Hsv and QColor::Spec::Hsl are currently supported.
For multi-stop gradients this color spec will be used for the portion of the color ramp leading into the current stop.
Definition at line 183 of file qgscolorrampimpl.cpp.
|
inline |
Sets the direction to traverse the color wheel using when interpolating hue-based color specifications.
For multi-stop gradients this direction will be used for the portion of the color ramp leading into the current stop.
Definition at line 110 of file qgscolorrampimpl.h.
|
friend |
Definition at line 118 of file qgscolorrampimpl.h.
QColor QgsGradientStop::color |
Gradient color at stop.
Definition at line 52 of file qgscolorrampimpl.h.
double QgsGradientStop::offset |
Relative positional offset, between 0 and 1.
Definition at line 50 of file qgscolorrampimpl.h.