Class: QgsFilledMarkerSymbolLayer

Filled marker symbol layer, consisting of a shape which is rendered using a QgsFillSymbol. This allows the symbol to support advanced styling of the interior and stroke of the shape.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsFilledMarkerSymbolLayer

Base classes

QgsSimpleMarkerSymbolLayerBase

Abstract base class for simple marker symbol layers.

QgsMarkerSymbolLayer

Abstract base class for marker symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Constructor

__init__

Abstract Methods

draw

Methods

calculateOffsetAndRotation

calculateSize

prepareMarkerPath

prepareMarkerShape

shapeToPolygon

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsFilledMarkerSymbolLayer. See the FAQ for more details.

clone

subSymbol

Static Methods

create

Creates a new QgsFilledMarkerSymbolLayer.

class qgis.core.QgsFilledMarkerSymbolLayer[source]

Bases: QgsSimpleMarkerSymbolLayerBase

__init__(shape: Qgis.MarkerShape = Qgis.MarkerShape.Circle, size: float = DEFAULT_SIMPLEMARKER_SIZE, angle: float = DEFAULT_SIMPLEMARKER_ANGLE, scaleMethod: Qgis.ScaleMethod = DEFAULT_SCALE_METHOD)

Constructor for QgsFilledMarkerSymbolLayer.

Parameters:
  • shape (Qgis.MarkerShape = Qgis.MarkerShape.Circle) – symbol shape

  • size (float = DEFAULT_SIMPLEMARKER_SIZE) – symbol size (in mm)

  • angle (float = DEFAULT_SIMPLEMARKER_ANGLE) – symbol rotation angle

  • scaleMethod (Qgis.ScaleMethod = DEFAULT_SCALE_METHOD) – size scaling method

calculateOffsetAndRotation()
calculateSize()
virtual clone(self) → QgsFilledMarkerSymbolLayer | None[source]
Return type:

QgsFilledMarkerSymbolLayer|None

static create(properties: dict[str | None, Any] = {}) → QgsSymbolLayer | None

Creates a new QgsFilledMarkerSymbolLayer.

Parameters:

properties (dict[str|None, Any] = {}) – a property map containing symbol properties (see properties())

Return type:

QgsSymbolLayer|None

Returns:

new QgsFilledMarkerSymbolLayer

abstract draw()[source]
prepareMarkerPath()
prepareMarkerShape()
shapeToPolygon()
virtual subSymbol(self) → QgsSymbol | None[source]
Return type:

QgsSymbol|None