QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Represents a simple line renderer with width and color varying depending on values. More...
#include <qgsinterpolatedlinerenderer.h>
Public Member Functions | |
QgsInterpolatedLineColor | interpolatedColor () const |
Returns the stroke color used to render. More... | |
QgsInterpolatedLineWidth | interpolatedLineWidth () const |
Returns the stroke width used to render. More... | |
void | render (double value1, double value2, const QgsPointXY &point1, const QgsPointXY &point2, QgsRenderContext &context) const |
Renders a line in the context between point1 and point2 with color and width that vary depending on value1 and value2. More... | |
void | render (double valueColor1, double valueColor2, double valueWidth1, double valueWidth2, const QgsPointXY &point1, const QgsPointXY &point2, QgsRenderContext &context) const |
Renders a line in the context between point1 and point2 with color that varies depending on valueColor1 and valueColor2 and and width that varies between valueWidth1 and valueWidth2. More... | |
void | renderInDeviceCoordinates (double valueColor1, double valueColor2, double valueWidth1, double valueWidth2, QPointF point1, QPointF point2, QgsRenderContext &context) const |
Renders a line in the context between point1 and point2 in device (painter) coordinates with color that varies depending on valueColor1 and valueColor2 and and width that varies between valueWidth1 and valueWidth2. More... | |
void | setInterpolatedColor (const QgsInterpolatedLineColor &strokeColoring) |
Sets the stroke color used to render. More... | |
void | setInterpolatedWidth (const QgsInterpolatedLineWidth &strokeWidth) |
Sets the stroke width used to render. More... | |
void | setSelected (bool selected) |
Sets if the rendering must be done as the element is selected. More... | |
void | setWidthUnit (Qgis::RenderUnit strokeWidthUnit) |
Sets the unit of the stroke width. More... | |
Qgis::RenderUnit | widthUnit () const |
Returns the unit of the stroke width. More... | |
Friends | |
class | QgsInterpolatedLineSymbolLayer |
Represents a simple line renderer with width and color varying depending on values.
Definition at line 198 of file qgsinterpolatedlinerenderer.h.
QgsInterpolatedLineColor QgsInterpolatedLineRenderer::interpolatedColor | ( | ) | const |
Returns the stroke color used to render.
Definition at line 39 of file qgsinterpolatedlinerenderer.cpp.
QgsInterpolatedLineWidth QgsInterpolatedLineRenderer::interpolatedLineWidth | ( | ) | const |
Returns the stroke width used to render.
Definition at line 29 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::render | ( | double | value1, |
double | value2, | ||
const QgsPointXY & | point1, | ||
const QgsPointXY & | point2, | ||
QgsRenderContext & | context | ||
) | const |
Renders a line in the context between point1 and point2 with color and width that vary depending on value1 and value2.
This method assumes that point1 and point2 are in map units. See renderInDeviceCoordinates() for an equivalent method which renders lines in painter coordinates.
Definition at line 226 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::render | ( | double | valueColor1, |
double | valueColor2, | ||
double | valueWidth1, | ||
double | valueWidth2, | ||
const QgsPointXY & | point1, | ||
const QgsPointXY & | point2, | ||
QgsRenderContext & | context | ||
) | const |
Renders a line in the context between point1 and point2 with color that varies depending on valueColor1 and valueColor2 and and width that varies between valueWidth1 and valueWidth2.
This method assumes that point1 and point2 are in map units. See renderInDeviceCoordinates() for an equivalent method which renders lines in painter coordinates.
Definition at line 245 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::renderInDeviceCoordinates | ( | double | valueColor1, |
double | valueColor2, | ||
double | valueWidth1, | ||
double | valueWidth2, | ||
QPointF | point1, | ||
QPointF | point2, | ||
QgsRenderContext & | context | ||
) | const |
Renders a line in the context between point1 and point2 in device (painter) coordinates with color that varies depending on valueColor1 and valueColor2 and and width that varies between valueWidth1 and valueWidth2.
Definition at line 54 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::setInterpolatedColor | ( | const QgsInterpolatedLineColor & | strokeColoring | ) |
Sets the stroke color used to render.
Definition at line 34 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::setInterpolatedWidth | ( | const QgsInterpolatedLineWidth & | strokeWidth | ) |
Sets the stroke width used to render.
Definition at line 24 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::setSelected | ( | bool | selected | ) |
Sets if the rendering must be done as the element is selected.
Definition at line 265 of file qgsinterpolatedlinerenderer.cpp.
void QgsInterpolatedLineRenderer::setWidthUnit | ( | Qgis::RenderUnit | strokeWidthUnit | ) |
Sets the unit of the stroke width.
Definition at line 44 of file qgsinterpolatedlinerenderer.cpp.
Qgis::RenderUnit QgsInterpolatedLineRenderer::widthUnit | ( | ) | const |
Returns the unit of the stroke width.
Definition at line 49 of file qgsinterpolatedlinerenderer.cpp.
|
friend |
Definition at line 273 of file qgsinterpolatedlinerenderer.h.