Class: QgsFilledMarkerSymbolLayer¶
-
class
qgis.core.
QgsFilledMarkerSymbolLayer
(shape: QgsSimpleMarkerSymbolLayerBase.Shape = QgsSimpleMarkerSymbolLayerBase.Circle, size: float = DEFAULT_SIMPLEMARKER_SIZE, angle: float = DEFAULT_SIMPLEMARKER_ANGLE, scaleMethod: QgsSymbol.ScaleMethod = DEFAULT_SCALE_METHOD)¶ Bases:
QgsSimpleMarkerSymbolLayerBase
Constructor for QgsFilledMarkerSymbolLayer.
- Parameters
shape (QgsSimpleMarkerSymbolLayerBase.Shape = QgsSimpleMarkerSymbolLayerBase.Circle) – symbol shape
size (float = DEFAULT_SIMPLEMARKER_SIZE) – symbol size (in mm)
angle (float = DEFAULT_SIMPLEMARKER_ANGLE) – symbol rotation angle
scaleMethod (QgsSymbol.ScaleMethod = DEFAULT_SCALE_METHOD) – size scaling method
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.Methods
- rtype
QgsFilledMarkerSymbolLayer
- rtype
QColor
Creates a new QgsFilledMarkerSymbolLayer.
- param context
- rtype
bool
- rtype
str
- rtype
Dict[str, str]
- param c
- param symbol
- param context
- param context
- rtype
QgsSymbol
- param context
-
calculateOffsetAndRotation
()¶
-
calculateSize
()¶
-
clone
(self) → QgsFilledMarkerSymbolLayer¶ - Return type
-
color
(self) → QColor¶ - Return type
QColor
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ Creates a new QgsFilledMarkerSymbolLayer.
- Parameters
properties (Dict[str) – a property map containing symbol properties (see properties())
- Return type
- Returns
new QgsFilledMarkerSymbolLayer
-
draw
()¶
-
estimateMaxBleed
(self, context: QgsRenderContext) → float¶ - Parameters
context (QgsRenderContext) –
- Return type
float
-
hasDataDefinedProperties
(self) → bool¶ - Return type
bool
-
layerType
(self) → str¶ - Return type
str
-
markerOffset
()¶
-
markerOffset2
()¶
-
markerOffsetWithWidthAndHeight
()¶
-
prepareMarkerPath
()¶
-
prepareMarkerShape
()¶
-
properties
(self) → Dict[str, str]¶ - Return type
Dict[str, str]
-
restoreOldDataDefinedProperties
()¶
-
setColor
(self, c: Union[QColor, Qt.GlobalColor])¶ - Parameters
c (Union[QColor) –
-
shapeToPolygon
()¶
-
startRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
stopRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
usedAttributes
(self, context: QgsRenderContext) → Set[str]¶ - Parameters
context (QgsRenderContext) –
- Return type
Set[str]