Subgroup: Mesh

Class: QgsMeshRendererSettings

class qgis.core.QgsMeshRendererSettings

Bases: sip.wrapper

Represents all mesh renderer settings

Note

The API is considered EXPERIMENTAL and can be changed without a notice

New in version 3.4: Methods

activeScalarDataset Returns active scalar dataset
activeVectorDataset Returns active vector dataset
nativeMeshSettings Returns renderer settings
readXml Reads configuration from the given DOM element
scalarSettings Returns renderer settings
setActiveScalarDataset Sets active scalar dataset for rendering
setActiveVectorDataset Sets active vector dataset for rendering.
setNativeMeshSettings Sets new renderer settings, triggers repaint
setScalarSettings Sets new renderer settings
setTriangularMeshSettings Sets new renderer settings
setVectorSettings Sets new renderer settings
triangularMeshSettings Returns renderer settings
vectorSettings Returns renderer settings
writeXml Writes configuration to a new DOM element

Signals

Attributes

activeScalarDataset(self) → QgsMeshDatasetIndex

Returns active scalar dataset

activeVectorDataset(self) → QgsMeshDatasetIndex

Returns active vector dataset

nativeMeshSettings(self) → QgsMeshRendererMeshSettings

Returns renderer settings

readXml(self, elem: QDomElement)

Reads configuration from the given DOM element

scalarSettings(self, groupIndex: int) → QgsMeshRendererScalarSettings

Returns renderer settings

setActiveScalarDataset(self, index: QgsMeshDatasetIndex = QgsMeshDatasetIndex())

Sets active scalar dataset for rendering

setActiveVectorDataset(self, index: QgsMeshDatasetIndex = QgsMeshDatasetIndex())

Sets active vector dataset for rendering.

setNativeMeshSettings(self, settings: QgsMeshRendererMeshSettings)

Sets new renderer settings, triggers repaint

setScalarSettings(self, groupIndex: int, settings: QgsMeshRendererScalarSettings)

Sets new renderer settings

setTriangularMeshSettings(self, settings: QgsMeshRendererMeshSettings)

Sets new renderer settings

setVectorSettings(self, groupIndex: int, settings: QgsMeshRendererVectorSettings)

Sets new renderer settings

triangularMeshSettings(self) → QgsMeshRendererMeshSettings

Returns renderer settings

vectorSettings(self, groupIndex: int) → QgsMeshRendererVectorSettings

Returns renderer settings

writeXml(self, doc: QDomDocument) → QDomElement

Writes configuration to a new DOM element