Class: QgsMeshLayerSimpleLabeling¶
- class qgis.core.QgsMeshLayerSimpleLabeling¶
Bases:
QgsAbstractMeshLayerLabeling
Basic implementation of the labeling interface for mesh layer.
Added in version 3.36.
QgsMeshLayerSimpleLabeling(settings:
QgsPalLayerSettings
, labelFaces: bool = False) Constructs simple labeling configuration with given initialsettings
. Labels are placed on mesh vertices unlesslabelFaces
isTrue
, when they are placed on mesh faces.Methods
- param visitor:
- rtype:
Optional[QgsMeshLayerSimpleLabeling]
Create the instance from a DOM element with saved configuration
- param opacityFactor:
- rtype:
bool
- param doc:
Set pal settings (takes ownership).
- param providerId:
- rtype:
str
- accept(self, visitor: QgsStyleEntityVisitorInterface | None) bool ¶
- Parameters:
visitor (Optional[QgsStyleEntityVisitorInterface])
- Return type:
bool
- clone(self) QgsMeshLayerSimpleLabeling | None ¶
- Return type:
Optional[QgsMeshLayerSimpleLabeling]
- create(element: QDomElement, context: QgsReadWriteContext) QgsMeshLayerSimpleLabeling | None ¶
Create the instance from a DOM element with saved configuration
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- Return type:
Optional[QgsMeshLayerSimpleLabeling]
- multiplyOpacity(self, opacityFactor: float)¶
- Parameters:
opacityFactor (float)
- requiresAdvancedEffects(self) bool ¶
- Return type:
bool
- save(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
- Parameters:
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement
- setSettings(self, settings: QgsPalLayerSettings | None, providerId: str | None = '')¶
Set pal settings (takes ownership).
- Parameters:
settings (Optional[QgsPalLayerSettings]) – Pal layer settings
providerId (Optional[str] = '') – Unused parameter
- settings(self, providerId: str | None = '') QgsPalLayerSettings ¶
- Parameters:
providerId (Optional[str] = '')
- Return type:
- type(self) str ¶
- Return type:
str