Class: QgsAbstractBrushedLineSymbolLayer

class qgis.core.QgsAbstractBrushedLineSymbolLayer

Bases: QgsLineSymbolLayer

Base class for line symbol layer types which draws line sections using a QBrush.

New in version 3.24:

Methods

copyDataDefinedProperties

Copies all data defined properties of this layer to another symbol layer.

copyPaintEffect

Copies paint effect of this layer to another symbol layer

penCapStyle

Returns the pen cap style used to render the line (e.g. flat, square, round, etc).

penJoinStyle

Returns the pen join style used to render the line (e.g. miter, bevel, round, etc).

renderPolylineUsingBrush

Renders a polyline of points using the specified brush.

restoreOldDataDefinedProperties

Restores older data defined properties from string map.

setPenCapStyle

Sets the pen cap style used to render the line (e.g. flat, square, round, etc).

setPenJoinStyle

Sets the pen join style used to render the line (e.g. miter, bevel, round, etc).

copyDataDefinedProperties(self, destLayer: QgsSymbolLayer)

Copies all data defined properties of this layer to another symbol layer.

Parameters:

destLayer – destination layer

copyPaintEffect(self, destLayer: QgsSymbolLayer)

Copies paint effect of this layer to another symbol layer

Parameters:

destLayer – destination layer

New in version 2.9.

penCapStyle(self) Qt.PenCapStyle

Returns the pen cap style used to render the line (e.g. flat, square, round, etc).

See also

setPenCapStyle()

Return type:

Qt.PenCapStyle

penJoinStyle(self) Qt.PenJoinStyle

Returns the pen join style used to render the line (e.g. miter, bevel, round, etc).

Return type:

Qt.PenJoinStyle

renderPolylineUsingBrush(self, points: QPolygonF, context: QgsSymbolRenderContext, brush: QBrush | QColor | Qt.GlobalColor | QGradient, patternThickness: float, patternLength: float)

Renders a polyline of points using the specified brush.

Parameters:
  • points (QPolygonF) –

  • context (QgsSymbolRenderContext) –

  • brush (Union[QBrush) –

  • patternThickness (float) –

  • patternLength (float) –

restoreOldDataDefinedProperties(self, stringMap: Dict[str, Any])

Restores older data defined properties from string map.

New in version 3.0.

setPenCapStyle(self, style: Qt.PenCapStyle)

Sets the pen cap style used to render the line (e.g. flat, square, round, etc).

See also

penCapStyle()

Parameters:

style (Qt.PenCapStyle) –

setPenJoinStyle(self, style: Qt.PenJoinStyle)

Sets the pen join style used to render the line (e.g. miter, bevel, round, etc).

See also

penJoinStyle()

Parameters:

style (Qt.PenJoinStyle) –