QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | List of all members
QgsInterpolatedLineRenderer Class Reference

#include <qgsinterpolatedlinerenderer.h>

Public Member Functions

void render (double value1, double value2, QgsPointXY point1, QgsPointXY point2, QgsRenderContext &context) const
 Render a line in the context between point1 and point2 with color and width that vary depending on value1 and value2. More...
 
void setInterpolatedColor (const QgsInterpolatedLineColor &strokeColoring)
 Sets the stroke color used to plot. More...
 
void setInterpolatedWidth (const QgsInterpolatedLineWidth &strokeWidth)
 Sets the stroke width used to plot. More...
 
void setWidthUnit (const QgsUnitTypes::RenderUnit &strokeWidthUnit)
 Sets the unit of the stroke width. More...
 

Detailed Description

Represents a line with width and color varying depending on values.

Since
QGIS 3.14

Definition at line 184 of file qgsinterpolatedlinerenderer.h.

Member Function Documentation

◆ render()

void QgsInterpolatedLineRenderer::render ( double  value1,
double  value2,
QgsPointXY  point1,
QgsPointXY  point2,
QgsRenderContext context 
) const

Render a line in the context between point1 and point2 with color and width that vary depending on value1 and value2.

Definition at line 36 of file qgsinterpolatedlinerenderer.cpp.

◆ setInterpolatedColor()

void QgsInterpolatedLineRenderer::setInterpolatedColor ( const QgsInterpolatedLineColor strokeColoring)

Sets the stroke color used to plot.

Definition at line 26 of file qgsinterpolatedlinerenderer.cpp.

◆ setInterpolatedWidth()

void QgsInterpolatedLineRenderer::setInterpolatedWidth ( const QgsInterpolatedLineWidth strokeWidth)

Sets the stroke width used to plot.

Definition at line 21 of file qgsinterpolatedlinerenderer.cpp.

◆ setWidthUnit()

void QgsInterpolatedLineRenderer::setWidthUnit ( const QgsUnitTypes::RenderUnit strokeWidthUnit)

Sets the unit of the stroke width.

Definition at line 31 of file qgsinterpolatedlinerenderer.cpp.


The documentation for this class was generated from the following files: