|
| QgsGradientColorRamp (const QColor &color1=DEFAULT_GRADIENT_COLOR1, const QColor &color2=DEFAULT_GRADIENT_COLOR2, bool discrete=false, const QgsGradientStopsList &stops=QgsGradientStopsList()) |
| Constructor for QgsGradientColorRamp. More...
|
|
void | addStopsToGradient (QGradient *gradient, double opacity=1) const |
| Copy color ramp stops to a QGradient. More...
|
|
QgsGradientColorRamp * | clone () const override |
| Creates a clone of the color ramp. More...
|
|
QColor | color (double value) const override |
| Returns the color corresponding to a specified value. More...
|
|
QColor | color1 () const |
| Returns the gradient start color. More...
|
|
QColor | color2 () const |
| Returns the gradient end color. More...
|
|
QColor::Spec | colorSpec () const |
| Returns the color specification in which the color component interpolation will occur. More...
|
|
void | convertToDiscrete (bool discrete) |
| Converts a gradient with existing color stops to or from discrete interpolation. More...
|
|
int | count () const override |
| Returns number of defined colors, or -1 if undefined. More...
|
|
Qgis::AngularDirection | direction () const |
| Returns the direction to traverse the color wheel using when interpolating hue-based color specifications. More...
|
|
QgsStringMap | info () const |
| Returns any additional info attached to the gradient ramp (e.g., authorship notes) More...
|
|
void | invert () override |
| Inverts the ordering of the color ramp. More...
|
|
bool | isDiscrete () const |
| Returns true if the gradient is using discrete interpolation, rather than smoothly interpolating between colors. More...
|
|
QVariantMap | properties () const override |
| Returns a string map containing all the color ramp's properties. More...
|
|
void | setColor1 (const QColor &color) |
| Sets the gradient start color. More...
|
|
void | setColor2 (const QColor &color) |
| Sets the gradient end color. More...
|
|
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...
|
|
void | setDiscrete (bool discrete) |
| Sets whether the gradient should use discrete interpolation, rather than smoothly interpolating between colors. More...
|
|
void | setInfo (const QgsStringMap &info) |
| Sets additional info to attach to the gradient ramp (e.g., authorship notes) More...
|
|
void | setStops (const QgsGradientStopsList &stops) |
| Sets the list of intermediate gradient stops for the ramp. More...
|
|
QgsGradientStopsList | stops () const |
| Returns the list of intermediate gradient stops for the ramp. More...
|
|
QString | type () const override |
| Returns a string representing the color ramp type. More...
|
|
double | value (int index) const override |
| Returns relative value between [0,1] of color at specified index. More...
|
|
virtual | ~QgsColorRamp () |
|
virtual QgsColorRamp * | clone () const =0 |
| Creates a clone of the color ramp. More...
|
|
virtual QColor | color (double value) const =0 |
| Returns the color corresponding to a specified value. More...
|
|
virtual int | count () const =0 |
| Returns number of defined colors, or -1 if undefined. More...
|
|
virtual void | invert () |
| Inverts the ordering of the color ramp. More...
|
|
virtual QVariantMap | properties () const =0 |
| Returns a string map containing all the color ramp's properties. More...
|
|
virtual QString | type () const =0 |
| Returns a string representing the color ramp type. More...
|
|
virtual double | value (int index) const =0 |
| Returns relative value between [0,1] of color at specified index. More...
|
|