Class: QgsMeshDataset

Abstract class that represents a mesh dataset.

Added in version 3.16.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: areFacesActive(), datasetValue(), datasetValues(), isActive(), metadata(), valuesCount()

class qgis.core.QgsMeshDataset[source]

Bases: object

abstract areFacesActive(self, faceIndex: int, count: int) QgsMeshDataBlock[source]

Returns whether faces are active

Parameters:
  • faceIndex (int)

  • count (int)

Return type:

QgsMeshDataBlock

abstract datasetValue(self, valueIndex: int) QgsMeshDatasetValue[source]

Returns the value with index valueIndex

Parameters:

valueIndex (int)

Return type:

QgsMeshDatasetValue

abstract datasetValues(self, isScalar: bool, valueIndex: int, count: int) QgsMeshDataBlock[source]

Returns count values from valueIndex

Parameters:
  • isScalar (bool)

  • valueIndex (int)

  • count (int)

Return type:

QgsMeshDataBlock

abstract isActive(self, faceIndex: int) bool[source]

Returns whether the face is active

Parameters:

faceIndex (int)

Return type:

bool

abstract metadata(self) QgsMeshDatasetMetadata[source]

Returns the metadata of the dataset

Return type:

QgsMeshDatasetMetadata

abstract valuesCount(self) int[source]

Returns the values count

Return type:

int