QGIS API Documentation 3.41.0-Master (3291e9ff48b)
|
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. | |
QColor::Spec | colorSpec () const |
Returns the color specification in which the color component interpolation will occur. | |
Qgis::AngularDirection | direction () const |
Returns the direction to traverse the color wheel using when interpolating hue-based color specifications. | |
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. | |
void | setDirection (Qgis::AngularDirection direction) |
Sets the direction to traverse the color wheel using when interpolating hue-based color specifications. | |
Public Attributes | |
QColor | color |
Gradient color at stop. | |
double | offset |
Relative positional offset, between 0 and 1. | |
Friends | |
class | QgsGradientColorRamp |
Represents a color stop within a QgsGradientColorRamp color ramp.
Definition at line 37 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 206 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 72 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 97 of file qgscolorrampimpl.h.
|
inline |
Definition at line 58 of file qgscolorrampimpl.h.
|
inline |
Definition at line 53 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 214 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 109 of file qgscolorrampimpl.h.
|
friend |
Definition at line 117 of file qgscolorrampimpl.h.
QColor QgsGradientStop::color |
Gradient color at stop.
Definition at line 51 of file qgscolorrampimpl.h.
double QgsGradientStop::offset |
Relative positional offset, between 0 and 1.
Definition at line 49 of file qgscolorrampimpl.h.