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.

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.

Abstract Methods

draw

Methods

calculateOffsetAndRotation

calculateSize

prepareMarkerPath

prepareMarkerShape

shapeToPolygon

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()
static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]

Creates a new QgsFilledMarkerSymbolLayer.

Parameters:

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

Return type:

Optional[QgsSymbolLayer]

Returns:

new QgsFilledMarkerSymbolLayer

abstract draw()[source]
prepareMarkerPath()
prepareMarkerShape()
shapeToPolygon()