Class: QgsAbstractBrushedLineSymbolLayer

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

Added in version 3.24.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: QgsSymbolLayer.clone(), QgsSymbolLayer.layerType(), QgsSymbolLayer.properties(), QgsLineSymbolLayer.renderPolyline(), QgsSymbolLayer.startRender(), QgsSymbolLayer.stopRender()

Class Hierarchy

Inheritance diagram of qgis.core.QgsAbstractBrushedLineSymbolLayer

Base classes

QgsLineSymbolLayer

Abstract base class for line symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Subclasses

QgsLineburstSymbolLayer

Line symbol layer type which draws a gradient pattern perpendicularly along a line.

QgsRasterLineSymbolLayer

Line symbol layer type which draws line sections using a raster image file.

Methods

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.

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

class qgis.core.QgsAbstractBrushedLineSymbolLayer[source]

Bases: QgsLineSymbolLayer

penCapStyle(self) Qt.PenCapStyle[source]

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[source]

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)[source]

Renders a polyline of points using the specified brush.

Parameters:
  • points (QPolygonF)

  • context (QgsSymbolRenderContext)

  • brush (Union[QBrush, Union[QColor, Qt.GlobalColor], QGradient])

  • patternThickness (float)

  • patternLength (float)

setPenCapStyle(self, style: Qt.PenCapStyle)[source]

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)[source]

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

See also

penJoinStyle()

Parameters:

style (Qt.PenJoinStyle)