Class: QgsMeshLayerSimpleLabeling¶
Basic implementation of the labeling interface for mesh layers.
Added in version 3.36.
Class Hierarchy¶
Base classes¶
Abstract base class - its implementations define different approaches to the labeling of a mesh layer. |
Abstract Methods
Set pal settings (takes ownership). |
Static Methods
Create the instance from a DOM element with saved configuration |
- class qgis.core.QgsMeshLayerSimpleLabeling[source]¶
Bases:
QgsAbstractMeshLayerLabeling
- __init__(settings: QgsPalLayerSettings, labelFaces: bool = False)
Constructs simple labeling configuration with given initial
settings
. Labels are placed on mesh vertices unlesslabelFaces
isTrue
, when they are placed on mesh faces.- Parameters:
settings (QgsPalLayerSettings)
labelFaces (bool = False)
- static create(element: QDomElement, context: QgsReadWriteContext) QgsMeshLayerSimpleLabeling | None [source]¶
Create the instance from a DOM element with saved configuration
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- Return type:
Optional[QgsMeshLayerSimpleLabeling]
- abstract setSettings(self, settings: QgsPalLayerSettings | None, providerId: str | None = '')[source]¶
Set pal settings (takes ownership).
- Parameters:
settings (Optional[QgsPalLayerSettings]) – Pal layer settings
providerId (Optional[str] = '') – Unused parameter