| QGIS API Documentation
    3.20.0-Odense (decaadbb31)
    | 
Class defining color to render mesh datasets. More...
#include <qgsinterpolatedlinerenderer.h>
| Public Types | |
| enum | ColoringMethod { SingleColor = 0 , ColorRamp } | 
| Defines how the color is defined.  More... | |
| Public Member Functions | |
| QgsInterpolatedLineColor () | |
| Default constructor.  More... | |
| QgsInterpolatedLineColor (const QColor &color) | |
| Constructor with fixed color.  More... | |
| QgsInterpolatedLineColor (const QgsColorRampShader &colorRampShader) | |
| Constructor with variable color depending on magnitude.  More... | |
| QColor | color (double magnitude) const | 
| Returns the color corresponding to the magnitude.  More... | |
| QgsInterpolatedLineColor::ColoringMethod | coloringMethod () const | 
| Returns the coloring method used.  More... | |
| QgsColorRampShader | colorRampShader () const | 
| Returns the color ramp shader.  More... | |
| void | graduatedColors (double value1, double value2, QList< double > &breakValues, QList< QColor > &breakColors, QList< QLinearGradient > &gradients) const | 
| Returns the break values, graduated colors and the associated gradients between two values.  More... | |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) | 
| Reads configuration from the given DOM element.  More... | |
| void | setColor (const QColor &color) | 
| Sets the single color to define the coloring.  More... | |
| void | setColor (const QgsColorRampShader &colorRampShader) | 
| Sets the color ramp to define the coloring.  More... | |
| void | setColoringMethod (const QgsInterpolatedLineColor::ColoringMethod &coloringMethod) | 
| Sets the coloring method used.  More... | |
| QColor | singleColor () const | 
| Returns the single color that is used if SingleColor coloring mode is set.  More... | |
| QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const | 
| Writes configuration to a new DOM element.  More... | |
Class defining color to render mesh datasets.
The color can vary depending on the dataset value.
Definition at line 38 of file qgsinterpolatedlinerenderer.h.
Defines how the color is defined.
| Enumerator | |
|---|---|
| SingleColor | Render with a single color. | 
| ColorRamp | Render with a color ramp. | 
Definition at line 45 of file qgsinterpolatedlinerenderer.h.
| QgsInterpolatedLineColor::QgsInterpolatedLineColor | ( | ) | 
Default constructor.
Definition at line 439 of file qgsinterpolatedlinerenderer.cpp.
| QgsInterpolatedLineColor::QgsInterpolatedLineColor | ( | const QgsColorRampShader & | colorRampShader | ) | 
Constructor with variable color depending on magnitude.
Definition at line 445 of file qgsinterpolatedlinerenderer.cpp.
| QgsInterpolatedLineColor::QgsInterpolatedLineColor | ( | const QColor & | color | ) | 
Constructor with fixed color.
Definition at line 450 of file qgsinterpolatedlinerenderer.cpp.
| QColor QgsInterpolatedLineColor::color | ( | double | magnitude | ) | const | 
Returns the color corresponding to the magnitude.
Definition at line 472 of file qgsinterpolatedlinerenderer.cpp.
| QgsInterpolatedLineColor::ColoringMethod QgsInterpolatedLineColor::coloringMethod | ( | ) | const | 
Returns the coloring method used.
Definition at line 492 of file qgsinterpolatedlinerenderer.cpp.
| QgsColorRampShader QgsInterpolatedLineColor::colorRampShader | ( | ) | const | 
Returns the color ramp shader.
Definition at line 497 of file qgsinterpolatedlinerenderer.cpp.
| void QgsInterpolatedLineColor::graduatedColors | ( | double | value1, | 
| double | value2, | ||
| QList< double > & | breakValues, | ||
| QList< QColor > & | breakColors, | ||
| QList< QLinearGradient > & | gradients | ||
| ) | const | 
Returns the break values, graduated colors and the associated gradients between two values.
Definition at line 532 of file qgsinterpolatedlinerenderer.cpp.
| void QgsInterpolatedLineColor::readXml | ( | const QDomElement & | elem, | 
| const QgsReadWriteContext & | context | ||
| ) | 
Reads configuration from the given DOM element.
Definition at line 520 of file qgsinterpolatedlinerenderer.cpp.
| void QgsInterpolatedLineColor::setColor | ( | const QColor & | color | ) | 
Sets the single color to define the coloring.
Definition at line 467 of file qgsinterpolatedlinerenderer.cpp.
| void QgsInterpolatedLineColor::setColor | ( | const QgsColorRampShader & | colorRampShader | ) | 
Sets the color ramp to define the coloring.
Definition at line 458 of file qgsinterpolatedlinerenderer.cpp.
| void QgsInterpolatedLineColor::setColoringMethod | ( | const QgsInterpolatedLineColor::ColoringMethod & | coloringMethod | ) | 
Sets the coloring method used.
Definition at line 558 of file qgsinterpolatedlinerenderer.cpp.
| QColor QgsInterpolatedLineColor::singleColor | ( | ) | const | 
Returns the single color that is used if SingleColor coloring mode is set.
Definition at line 502 of file qgsinterpolatedlinerenderer.cpp.
| QDomElement QgsInterpolatedLineColor::writeXml | ( | QDomDocument & | doc, | 
| const QgsReadWriteContext & | context | ||
| ) | const | 
Writes configuration to a new DOM element.
Definition at line 507 of file qgsinterpolatedlinerenderer.cpp.