QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Represents a dataset group calculated from a formula string. More...
#include <qgsmeshvirtualdatasetgroup.h>
Public Member Functions | |
QgsMeshVirtualDatasetGroup (const QString &name, const QString &formulaString, QgsMeshLayer *layer, qint64 relativeStartTime, qint64 relativeEndTime) | |
Constructor. More... | |
QgsMeshDataset * | dataset (int index) const override |
Returns the dataset with index. More... | |
int | datasetCount () const override |
Returns the count of datasets in the group. More... | |
QStringList | datasetGroupNamesDependentOn () const override |
Returns the dataset group variable name which this dataset group depends on. More... | |
QgsMeshDatasetMetadata | datasetMetadata (int datasetIndex) const override |
Returns the metadata of the dataset with index datasetIndex. More... | |
QString | description () const override |
Returns some information about the dataset group. More... | |
void | initialize () override |
Initialize the dataset group. More... | |
QgsMeshDatasetGroup::Type | type () const override |
Returns the type of dataset group. More... | |
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const override |
Write dataset group information in a DOM element. More... | |
Public Member Functions inherited from QgsMeshDatasetGroup | |
QgsMeshDatasetGroup ()=default | |
Default constructor. More... | |
QgsMeshDatasetGroup (const QString &name) | |
Constructor with the name of the dataset group. More... | |
QgsMeshDatasetGroup (const QString &name, QgsMeshDatasetGroupMetadata::DataType dataType) | |
Constructor with the name of the dataset group and the dataTYpe. More... | |
virtual | ~QgsMeshDatasetGroup () |
void | addExtraMetadata (QString key, QString value) |
Adds extra metadata to the group. More... | |
void | calculateStatistic () |
Calculates the statistics (minimum and maximum) More... | |
bool | checkValueCountPerDataset (int count) const |
Returns whether all the datasets contain count values. More... | |
QgsMeshDatasetGroupMetadata::DataType | dataType () const |
Returns the data type of the dataset group. More... | |
QMap< QString, QString > | extraMetadata () const |
Returns all the extra metadata of the group. More... | |
QgsMeshDatasetGroupMetadata | groupMetadata () const |
Returns the metadata of the dataset group. More... | |
bool | isScalar () const |
Returns whether the group contain scalar values. More... | |
double | maximum () const |
Returns the maximum value of the whole dataset group. More... | |
double | minimum () const |
Returns the minimum value of the whole dataset group. More... | |
QString | name () const |
Returns the name of the dataset group. More... | |
void | setDataType (const QgsMeshDatasetGroupMetadata::DataType &dataType) |
Sets the data type of the dataset group. More... | |
void | setIsScalar (bool isScalar) |
Sets whether the group contain scalar values. More... | |
void | setMinimumMaximum (double min, double max) |
Overrides the minimum and the maximum value of the whole dataset group. More... | |
void | setName (const QString &name) |
Sets the name of the dataset group. More... | |
void | setReferenceTime (const QDateTime &referenceTime) |
Sets the reference time of the dataset group. More... | |
Additional Inherited Members | |
Public Types inherited from QgsMeshDatasetGroup | |
enum | Type { None , Persistent , Memory , Virtual } |
Type of the dataset group. More... | |
Protected Attributes inherited from QgsMeshDatasetGroup | |
QgsMeshDatasetGroupMetadata::DataType | mDataType = QgsMeshDatasetGroupMetadata::DataOnVertices |
bool | mIsScalar = true |
QMap< QString, QString > | mMetadata |
QString | mName |
Represents a dataset group calculated from a formula string.
The calculation is done by the QgsMeshCalcUtils class from a QgsMeshCalcNode created from the formula Each dataset is calculted when needed, so there is only one dataset store in this class all the time.
Definition at line 38 of file qgsmeshvirtualdatasetgroup.h.
QgsMeshVirtualDatasetGroup::QgsMeshVirtualDatasetGroup | ( | const QString & | name, |
const QString & | formulaString, | ||
QgsMeshLayer * | layer, | ||
qint64 | relativeStartTime, | ||
qint64 | relativeEndTime | ||
) |
Constructor.
name | name of the dataset group |
formulaString | formula use to define the dataset group |
layer | mesh layer that contains dataset group |
relativeStartTime | relative time start, in mimliseconds, from the mesh layer provider reference time |
relativeEndTime | relative time end, in mimliseconds, from the mesh layer provider reference time |
Definition at line 21 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Returns the dataset with index.
Implements QgsMeshDatasetGroup.
Definition at line 105 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Returns the count of datasets in the group.
Implements QgsMeshDatasetGroup.
Definition at line 100 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Returns the dataset group variable name which this dataset group depends on.
Reimplemented from QgsMeshDatasetGroup.
Definition at line 127 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Returns the metadata of the dataset with index datasetIndex.
Implements QgsMeshDatasetGroup.
Definition at line 119 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Returns some information about the dataset group.
Reimplemented from QgsMeshDatasetGroup.
Definition at line 145 of file qgsmeshvirtualdatasetgroup.cpp.
|
overridevirtual |
Initialize the dataset group.
Implements QgsMeshDatasetGroup.
Definition at line 35 of file qgsmeshvirtualdatasetgroup.cpp.
|
inlineoverridevirtual |
Returns the type of dataset group.
Implements QgsMeshDatasetGroup.
Definition at line 63 of file qgsmeshvirtualdatasetgroup.h.
|
overridevirtual |
Write dataset group information in a DOM element.
Implements QgsMeshDatasetGroup.
Definition at line 132 of file qgsmeshvirtualdatasetgroup.cpp.