Subgroup: Mesh
Class: QgsMeshDatasetSourceInterface¶
-
class
qgis.core.
QgsMeshDatasetSourceInterface
¶ Bases:
sip.wrapper
Interface for mesh datasets
Dataset is a collection of vector or scalar values on vertices or faces of the mesh. Based on the underlying data provider/format, whole dataset is either stored in memory or read on demand
Note
The API is considered EXPERIMENTAL and can be changed without a notice
New in version 3.2: Methods
addDataset
Associate dataset with the mesh datasetCount
Returns number of datasets loaded datasetMetadata
Returns dataset metadata datasetValue
Returns vector/scalar value associated with the index from the dataset Signals
Attributes
-
addDataset
(self, uri: str) → bool¶ Associate dataset with the mesh
-
datasetCount
(self) → int¶ Returns number of datasets loaded
-
datasetMetadata
(self, datasetIndex: int) → QgsMeshDatasetMetadata¶ Returns dataset metadata
-
datasetValue
(self, datasetIndex: int, valueIndex: int) → QgsMeshDatasetValue¶ Returns vector/scalar value associated with the index from the dataset
See QgsMeshDatasetMetadata.isVector() to check if the returned value is vector or scalar
-