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¶
Base classes¶
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Subclasses¶
Line symbol layer type which draws a gradient pattern perpendicularly along a line. |
|
Line symbol layer type which draws line sections using a raster image file. |
Methods
Returns the pen cap style used to render the line (e.g. flat, square, round, etc). |
|
Returns the pen join style used to render the line (e.g. miter, bevel, round, etc). |
|
Renders a polyline of points using the specified brush. |
|
Sets the pen cap style used to render the line (e.g. flat, square, round, etc). |
|
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
- 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).
See also
- 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 specifiedbrush
.- 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
- Parameters:
style (Qt.PenCapStyle)