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
Copies all data defined properties of this layer to another symbol layer.
Copies paint effect of this layer to another symbol layer
When rendering, install masks on
context
painter ifrecursive
isTrue
masks are installed recursively for all children symbol layersReturns the pen cap style used to render the line (e.g.
Returns the pen join style used to render the line (e.g.
When rendering, remove previously installed masks from
context
painter ifrecursive
isTrue
masks are removed recursively for all children symbol layersRenders a polyline of
points
using the specifiedbrush
.Restores older data defined properties from string map.
Sets the pen cap
style
used to render the line (e.g.Sets the pen join
style
used to render the line (e.g.- 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.
- installMasks(self, context: QgsRenderContext, recursive: bool)¶
When rendering, install masks on
context
painter ifrecursive
isTrue
masks are installed recursively for all children symbol layersSee also
prepareMasks()
See also
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
- Return type:
Qt.PenCapStyle
- penJoinStyle(self) Qt.PenJoinStyle ¶
Returns the pen join style used to render the line (e.g. miter, bevel, round, etc).
See also
- Return type:
Qt.PenJoinStyle
- removeMasks(self, context: QgsRenderContext, recursive: bool)¶
When rendering, remove previously installed masks from
context
painter ifrecursive
isTrue
masks are removed recursively for all children symbol layersSee also
prepareMasks()
See also
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 specifiedbrush
.- 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
- 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
- Parameters:
style (Qt.PenJoinStyle) –