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

installMasks

When rendering, install masks on context painter if recursive is True masks are installed recursively for all children symbol layers

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).

removeMasks

When rendering, remove previously installed masks from context painter if recursive is True masks are removed recursively for all children symbol layers

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).

shouldRenderUsingSelectionColor

Returns True if the symbol layer should be rendered using the selection color from the render context.

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

installMasks(self, context: QgsRenderContext, recursive: bool)

When rendering, install masks on context painter if recursive is True masks are installed recursively for all children symbol layers

See also

prepareMasks()

See also

removeMasks()

New in version 3.30.

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

removeMasks(self, context: QgsRenderContext, recursive: bool)

When rendering, remove previously installed masks from context painter if recursive is True masks are removed recursively for all children symbol layers

See also

prepareMasks()

See also

installMasks()

New in version 3.30.

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.

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) –

shouldRenderUsingSelectionColor(self, context: QgsSymbolRenderContext) bool

Returns True if the symbol layer should be rendered using the selection color from the render context.

New in version 3.34.