Class: QgsMeshDatasetGroup¶
Abstract class that represents a dataset group
Added in version 3.16.
Class Hierarchy¶
Subclasses¶
Convenient class that can be used to obtain a datasetgroup on vertices that represents the Z value of the mesh vertices  | 
Methods
Adds extra metadata to the group  | 
|
Calculates the statistics (minimum and maximum)  | 
|
Returns whether all the datasets contain count values  | 
|
Returns the data type of the dataset group  | 
|
Returns the dataset with index  | 
|
Returns the count of datasets in the group  | 
|
Returns the dataset group variable name which this dataset group depends on  | 
|
Returns the metadata of the dataset with index datasetIndex  | 
|
Returns some information about the dataset group  | 
|
Returns all the extra metadata of the group  | 
|
Returns the metadata of the dataset group  | 
|
Initialize the dataset group  | 
|
Returns whether the group contain scalar values  | 
|
Returns the maximum value of the whole dataset group  | 
|
Returns the minimum value of the whole dataset group  | 
|
Returns the name of the dataset group  | 
|
Sets the data type of the dataset group  | 
|
Sets whether the group contain scalar values  | 
|
Overrides the minimum and the maximum value of the whole dataset group  | 
|
Sets the name of the dataset group  | 
|
Sets the reference time of the dataset group  | 
|
Sets statistic obsolete, that means statistic will be recalculated when requested  | 
|
Returns the type of dataset group  | 
|
Write dataset group information in a DOM element  | 
Attributes
- class qgis.core.QgsMeshDatasetGroup[source]¶
 Bases:
object- __init__()
 
- __init__(name: str | None)
 Constructor with the
nameof the dataset group- Parameters:
 name (Optional[str])
- __init__(name: str | None, dataType: QgsMeshDatasetGroupMetadata.DataType)
 Constructor with the
nameof the dataset group and thedataTYpe- Parameters:
 name (Optional[str])
dataType (QgsMeshDatasetGroupMetadata.DataType)
- __init__(a0: QgsMeshDatasetGroup)
 - Parameters:
 a0 (QgsMeshDatasetGroup)
- Memory = 2¶
 
- Persistent = 1¶
 
- class Type¶
 Bases:
int
- Unknown = 0¶
 
- Virtual = 3¶
 
- addExtraMetadata(self, key: str | None, value: str | None)[source]¶
 Adds extra metadata to the group
- Parameters:
 key (Optional[str])
value (Optional[str])
- checkValueCountPerDataset(self, count: int) bool[source]¶
 Returns whether all the datasets contain
countvalues- Parameters:
 count (int)
- Return type:
 bool
- dataType(self) QgsMeshDatasetGroupMetadata.DataType[source]¶
 Returns the data type of the dataset group
- Return type:
 
- dataset(self, index: int) QgsMeshDataset | None[source]¶
 Returns the dataset with
index- Parameters:
 index (int)
- Return type:
 Optional[QgsMeshDataset]
- datasetGroupNamesDependentOn(self) List[str][source]¶
 Returns the dataset group variable name which this dataset group depends on
- Return type:
 List[str]
- datasetMetadata(self, datasetIndex: int) QgsMeshDatasetMetadata[source]¶
 Returns the metadata of the dataset with index
datasetIndex- Parameters:
 datasetIndex (int)
- Return type:
 
- extraMetadata(self) Dict[str, str]¶
 Returns all the extra metadata of the group
- Return type:
 Dict[str, str]
- groupMetadata(self) QgsMeshDatasetGroupMetadata[source]¶
 Returns the metadata of the dataset group
- Return type:
 
- maximum(self) float[source]¶
 Returns the maximum value of the whole dataset group
- Return type:
 float
- minimum(self) float[source]¶
 Returns the minimum value of the whole dataset group
- Return type:
 float
- setDataType(self, dataType: QgsMeshDatasetGroupMetadata.DataType)[source]¶
 Sets the data type of the dataset group
- Parameters:
 dataType (QgsMeshDatasetGroupMetadata.DataType)
- setIsScalar(self, isScalar: bool)[source]¶
 Sets whether the group contain scalar values
- Parameters:
 isScalar (bool)
- setMinimumMaximum(self, min: float, max: float)[source]¶
 Overrides the minimum and the maximum value of the whole dataset group
- Parameters:
 min (float)
max (float)
- setName(self, name: str | None)[source]¶
 Sets the name of the dataset group
- Parameters:
 name (Optional[str])
- setReferenceTime(self, referenceTime: QDateTime | datetime.datetime)[source]¶
 Sets the reference time of the dataset group
- Parameters:
 referenceTime (Union[QDateTime, datetime.datetime])
- setStatisticObsolete(self)[source]¶
 Sets statistic obsolete, that means statistic will be recalculated when requested
- type(self) QgsMeshDatasetGroup.Type[source]¶
 Returns the type of dataset group
- Return type:
 
- writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement[source]¶
 Write dataset group information in a DOM element
- Parameters:
 doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
 QDomElement