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
Returns the pen cap style used to render the line (e.g.
Returns the pen join style used to render the line (e.g.
Renders 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.
- 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
- 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) –