Class: QgsFilledLineSymbolLayer

class qgis.core.QgsFilledLineSymbolLayer

Bases: QgsLineSymbolLayer

A line symbol layer type which fills a stroked line with a QgsFillSymbol.

Added in version 3.36.

QgsFilledLineSymbolLayer(width: float = DEFAULT_SIMPLELINE_WIDTH, fillSymbol: QgsFillSymbol = None) Constructor for QgsFilledLineSymbolLayer.

If a fillSymbol is specified, it will be transferred to the symbol layer and used to fill the inside of the stroked line. If no fillSymbol is specified then a default symbol will be used.

Methods

clone

rtype:

QgsFilledLineSymbolLayer

color

rtype:

QColor

copyDataDefinedProperties

Copies all data defined properties of this layer to another symbol layer.

copyPaintEffect

Copies paint effect of this layer to another symbol layer

create

Creates a new QgsFilledLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsFilledLineSymbolLayer.properties() ).

estimateMaxBleed

param context:

hasDataDefinedProperties

rtype:

bool

installMasks

When rendering, install masks on context painter if recursive is True masks are installed recursively for all children symbol layers

layerType

rtype:

str

mapUnitScale

rtype:

QgsMapUnitScale

outputUnit

rtype:

Qgis.RenderUnit

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

properties

rtype:

Dict[str, Any]

removeMasks

When rendering, remove previously installed masks from context painter if recursive is True masks are removed recursively for all children symbol layers

renderPolyline

param points:

restoreOldDataDefinedProperties

Restores older data defined properties from string map.

setColor

param c:

setMapUnitScale

param scale:

setOutputUnit

param unit:

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

setSubSymbol

param symbol:

shouldRenderUsingSelectionColor

Returns True if the symbol layer should be rendered using the selection color from the render context.

startRender

param context:

stopRender

param context:

subSymbol

rtype:

QgsSymbol

usedAttributes

param context:

usesMapUnits

rtype:

bool

clone(self) QgsFilledLineSymbolLayer
Return type:

QgsFilledLineSymbolLayer

color(self) QColor
Return type:

QColor

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

create(properties: Dict[str, Any] = {}) QgsSymbolLayer

Creates a new QgsFilledLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsFilledLineSymbolLayer.properties() ).

Parameters:

properties (Dict[str)

Return type:

QgsSymbolLayer

estimateMaxBleed(self, context: QgsRenderContext) float
Parameters:

context (QgsRenderContext)

Return type:

float

hasDataDefinedProperties(self) bool
Return type:

bool

installMasks(self, context: QgsRenderContext, recursive: bool)

When rendering, install masks on context painter if recursive is True masks are installed recursively for all children symbol layers

See also

prepareMasks()

See also

removeMasks()

Added in version 3.30.

layerType(self) str
Return type:

str

mapUnitScale(self) QgsMapUnitScale
Return type:

QgsMapUnitScale

outputUnit(self) Qgis.RenderUnit
Return type:

Qgis.RenderUnit

penCapStyle(self) Qt.PenCapStyle

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

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

Return type:

Qt.PenJoinStyle

properties(self) Dict[str, Any]
Return type:

Dict[str, Any]

removeMasks(self, context: QgsRenderContext, recursive: bool)

When rendering, remove previously installed masks from context painter if recursive is True masks are removed recursively for all children symbol layers

See also

prepareMasks()

See also

installMasks()

Added in version 3.30.

renderPolyline(self, points: QPolygonF, context: QgsSymbolRenderContext)
Parameters:
restoreOldDataDefinedProperties(self, stringMap: Dict[str, Any])

Restores older data defined properties from string map.

setColor(self, c: QColor | Qt.GlobalColor | QGradient)
Parameters:

c (Union[QColor)

setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters:

scale (QgsMapUnitScale)

setOutputUnit(self, unit: Qgis.RenderUnit)
Parameters:

unit (Qgis.RenderUnit)

setPenCapStyle(self, style: Qt.PenCapStyle)

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)

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

See also

penJoinStyle()

Parameters:

style (Qt.PenJoinStyle)

setSubSymbol(self, symbol: QgsSymbol) bool
Parameters:

symbol (QgsSymbol)

Return type:

bool

shouldRenderUsingSelectionColor(self, context: QgsSymbolRenderContext) bool

Returns True if the symbol layer should be rendered using the selection color from the render context.

Added in version 3.34.

startRender(self, context: QgsSymbolRenderContext)
Parameters:

context (QgsSymbolRenderContext)

stopRender(self, context: QgsSymbolRenderContext)
Parameters:

context (QgsSymbolRenderContext)

subSymbol(self) QgsSymbol
Return type:

QgsSymbol

usedAttributes(self, context: QgsRenderContext) Set[str]
Parameters:

context (QgsRenderContext)

Return type:

Set[str]

usesMapUnits(self) bool
Return type:

bool