Class: QgsMeshLayerSimpleLabeling

Basic implementation of the labeling interface for mesh layers.

Added in version 3.36.

List of all members, including inherited members

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.

Constructor

__init__

Abstract Methods

clone

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:
abstract clone(self) → QgsMeshLayerSimpleLabeling | None[source]
Return type:

QgsMeshLayerSimpleLabeling|None

static create(element: QDomElement, context: QgsReadWriteContext) → QgsMeshLayerSimpleLabeling | None

Create the instance from a DOM element with saved configuration

Parameters:
Return type:

QgsMeshLayerSimpleLabeling|None

abstract setSettings(self, settings: QgsPalLayerSettings | None, providerId: str | None = '')[source]

Set pal settings (takes ownership).

Parameters:
  • settings (QgsPalLayerSettings|None) – Pal layer settings

  • providerId (str|None = '') – Unused parameter