Class: QgsMaskMarkerSymbolLayer

class qgis.core.QgsMaskMarkerSymbolLayer

Bases: QgsMarkerSymbolLayer

Simple constructor

Special symbol layer that uses its sub symbol as a selective mask

Methods

bounds

param point

clone

rtype

QgsMaskMarkerSymbolLayer

copyDataDefinedProperties

copyPaintEffect

create

Create a new QgsMaskMarkerSymbolLayer

drawPreviewIcon

param context

enabled

Whether some masked symbol layers are defined

hasDataDefinedProperties

rtype

bool

layerType

rtype

str

markerOffset

markerOffset2

markerOffsetWithWidthAndHeight

masks

Returns a list of references to symbol layers that are masked by the sub symbol’s shape.

properties

rtype

Dict[str, str]

renderPoint

param point

restoreOldDataDefinedProperties

setMasks

Sets the symbol layers that will be masked by the sub symbol’s shape.

setSubSymbol

param symbol

startRender

param context

stopRender

param context

subSymbol

rtype

QgsSymbol

usedAttributes

param context

bounds(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF
Parameters
Return type

QRectF

clone(self) → QgsMaskMarkerSymbolLayer
Return type

QgsMaskMarkerSymbolLayer

copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer

Create a new QgsMaskMarkerSymbolLayer

Parameters

properties (Dict[str) – A property map to deserialize saved information from properties()

Return type

QgsSymbolLayer

Returns

A new QgsMaskMarkerSymbolLayer

drawPreviewIcon(self, context: QgsSymbolRenderContext, size: QSize)
Parameters
enabled(self) → bool

Whether some masked symbol layers are defined

Return type

bool

hasDataDefinedProperties(self) → bool
Return type

bool

layerType(self) → str
Return type

str

markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
masks(self) → List[QgsSymbolLayerReference]

Returns a list of references to symbol layers that are masked by the sub symbol’s shape.

Return type

List[QgsSymbolLayerReference]

Returns

a list of references to masked symbol layers

See also

setMasks()

properties(self) → Dict[str, str]
Return type

Dict[str, str]

renderPoint(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)
Parameters
restoreOldDataDefinedProperties()
setMasks(self, maskedLayers: Iterable[QgsSymbolLayerReference])

Sets the symbol layers that will be masked by the sub symbol’s shape.

Parameters

maskedLayers (Iterable[QgsSymbolLayerReference]) – list of references to symbol layers

See also

masks()

setSubSymbol(self, symbol: QgsSymbol) → bool
Parameters

symbol (QgsSymbol) –

Return type

bool

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]