Class: QgsInterpolatedLineRenderer¶
- class qgis.core.QgsInterpolatedLineRenderer¶
Bases:
sip.wrapper
Represents a line with width and color varying depending on values.
Methods
Render a line in the
context
betweenpoint1
andpoint2
with color and width that vary depending onvalue1
andvalue2
Sets the stroke color used to plot
Sets the stroke width used to plot
Sets the unit of the stroke width
- render(self, value1: float, value2: float, point1: QgsPointXY, point2: QgsPointXY, context: QgsRenderContext)¶
Render a line in the
context
betweenpoint1
andpoint2
with color and width that vary depending onvalue1
andvalue2
- Parameters
value1 (float) –
value2 (float) –
point1 (QgsPointXY) –
point2 (QgsPointXY) –
context (QgsRenderContext) –
- setInterpolatedColor(self, strokeColoring: QgsInterpolatedLineColor)¶
Sets the stroke color used to plot
- Parameters
strokeColoring (QgsInterpolatedLineColor) –
- setInterpolatedWidth(self, strokeWidth: QgsInterpolatedLineWidth)¶
Sets the stroke width used to plot
- Parameters
strokeWidth (QgsInterpolatedLineWidth) –
- setWidthUnit(self, strokeWidthUnit: QgsUnitTypes.RenderUnit)¶
Sets the unit of the stroke width
- Parameters
strokeWidthUnit (QgsUnitTypes.RenderUnit) –