Class: QgsMeshLayerSimpleLabeling

Basic implementation of the labeling interface for mesh layers.

Added in version 3.36.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMeshLayerSimpleLabeling

Base classes

QgsAbstractMeshLayerLabeling

Abstract base class - its implementations define different approaches to the labeling of a mesh layer.

Abstract Methods

setSettings

Set pal settings (takes ownership).

Static Methods

create

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 unless labelFaces is True, when they are placed on mesh faces.

Parameters:
static create(element: QDomElement, context: QgsReadWriteContext) QgsMeshLayerSimpleLabeling | None[source]

Create the instance from a DOM element with saved configuration

Parameters:
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