Class: QgsLineburstSymbolLayer¶
Line symbol layer type which draws a gradient pattern perpendicularly along a line.
See QgsInterpolatedLineSymbolLayer for a line symbol layer
which draws gradients along the length of a line.
Added in version 3.24.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for line symbol layer types which draws line sections using a QBrush. |
|
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns the color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor. |
|
Returns the color ramp used for the gradient line. |
|
Returns the gradient color mode, which controls how gradient color stops are created. |
|
Sets the color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor. |
|
Sets the color ramp used for the gradient line. |
|
Sets the gradient color mode, which controls how gradient color stops are created. |
Static Methods
Creates a new |
- class qgis.core.QgsLineburstSymbolLayer[source]¶
Bases:
QgsAbstractBrushedLineSymbolLayer- __init__(color: QColor | Qt.GlobalColor | int = DEFAULT_SIMPLELINE_COLOR, color2: QColor | Qt.GlobalColor | int = Qt.white)
Constructor for QgsLineburstSymbolLayer, with the specified start and end gradient colors.
- color2(self) QColor[source]¶
Returns the color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor.
See also
- Return type:
QColor
- colorRamp(self) QgsColorRamp | None[source]¶
Returns the color ramp used for the gradient line. This is only used if the gradient color type is set to ColorRamp.
See also
See also
- Return type:
- static create(properties: dict[str | None, Any] = {}) QgsSymbolLayer | None[source]¶
Creates a new
QgsLineburstSymbolLayer, using the settings serialized in thepropertiesmap (corresponding to the output fromQgsLineburstSymbolLayer.properties()).- Parameters:
- Return type:
- gradientColorType(self) Qgis.GradientColorSource[source]¶
Returns the gradient color mode, which controls how gradient color stops are created.
See also
- Return type:
- setColor2(self, color2: QColor | Qt.GlobalColor | int)[source]¶
Sets the color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor.
See also
- Parameters:
color2 (Union[QColor, Qt.GlobalColor, int])
- setColorRamp(self, ramp: QgsColorRamp | None)[source]¶
Sets the color ramp used for the gradient line. This is only used if the gradient color type is set to ColorRamp.
- Parameters:
ramp (Optional[QgsColorRamp]) – color ramp. Ownership is transferred.
See also
See also
- setGradientColorType(self, gradientColorType: Qgis.GradientColorSource)[source]¶
Sets the gradient color mode, which controls how gradient color stops are created.
See also
- Parameters:
gradientColorType (Qgis.GradientColorSource)