Class: QgsMeshDatasetIndex

An index that identifies the dataset group (e.g. wind speed) and a dataset in this group (e.g. magnitude of wind speed in particular time).

Note

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

Added in version 3.4.

Methods

dataset

Returns a dataset index within group()

group

Returns a group index

isValid

Returns whether index is valid, ie at least groups is set

class qgis.core.QgsMeshDatasetIndex[source]

Bases: object

__init__(group: int = -1, dataset: int = -1)

Creates an index. -1 represents invalid group/dataset

Parameters:
  • group (int = -1)

  • dataset (int = -1)

__init__(a0: QgsMeshDatasetIndex)
Parameters:

a0 (QgsMeshDatasetIndex)

dataset(self) int[source]

Returns a dataset index within group()

Return type:

int

group(self) int[source]

Returns a group index

Return type:

int

isValid(self) bool[source]

Returns whether index is valid, ie at least groups is set

Return type:

bool