Subgroup: Line

Class: QgsLineSymbolLayer

class qgis.core.QgsLineSymbolLayer(locked: bool = False)

Bases: qgis._core.QgsSymbolLayer

QgsLineSymbolLayer(QgsLineSymbolLayer)

copyDataDefinedProperties()
copyPaintEffect()
drawPreviewIcon(self, context: QgsSymbolRenderContext, size: QSize)
dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float
mapUnitScale(self) → QgsMapUnitScale
offset(self) → float
offsetMapUnitScale(self) → QgsMapUnitScale
offsetUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the line’s offset.

See also

setOffsetUnit()

outputUnit(self) → QgsUnitTypes.RenderUnit
renderPolygonStroke(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
renderPolyline(self, points: QPolygonF, context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setMapUnitScale(self, scale: QgsMapUnitScale)
setOffset(self, offset: float)
setOffsetMapUnitScale(self, scale: QgsMapUnitScale)
setOffsetUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the line’s offset.

Parameters:unit – offset units

See also

offsetUnit()

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setWidth(self, width: float)
setWidthMapUnitScale(self, scale: QgsMapUnitScale)
setWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the line’s width.

Parameters:unit – width units

See also

widthUnit()

width(self) → float
widthMapUnitScale(self) → QgsMapUnitScale
widthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the line’s width.

See also

setWidthUnit()