QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Abstract class that represents a dataset group. More...
#include <qgsmeshdataset.h>
Public Types | |
enum | Type { None , Persistent , Memory , Virtual } |
Type of the dataset group. More... | |
Public Member Functions | |
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... | |
virtual QgsMeshDataset * | dataset (int index) const =0 |
Returns the dataset with index. More... | |
virtual int | datasetCount () const =0 |
Returns the count of datasets in the group. More... | |
virtual QStringList | datasetGroupNamesDependentOn () const |
Returns the dataset group variable name which this dataset group depends on. More... | |
virtual QgsMeshDatasetMetadata | datasetMetadata (int datasetIndex) const =0 |
Returns the metadata of the dataset with index datasetIndex. More... | |
QgsMeshDatasetGroupMetadata::DataType | dataType () const |
Returns the data type of the dataset group. More... | |
virtual QString | description () const |
Returns some information about 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... | |
virtual void | initialize ()=0 |
Initialize 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... | |
virtual QgsMeshDatasetGroup::Type | type () const =0 |
Returns the type of dataset group. More... | |
virtual QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const =0 |
Write dataset group information in a DOM element. More... | |
Protected Attributes | |
QgsMeshDatasetGroupMetadata::DataType | mDataType = QgsMeshDatasetGroupMetadata::DataOnVertices |
bool | mIsScalar = true |
QMap< QString, QString > | mMetadata |
QString | mName |
Abstract class that represents a dataset group.
Definition at line 577 of file qgsmeshdataset.h.
Type of the dataset group.
Enumerator | |
---|---|
None | |
Persistent | Generic type used for non typed dataset group. |
Memory | Dataset group store in a file. |
Virtual | Temporary dataset group in memory. |
Definition at line 586 of file qgsmeshdataset.h.
|
default |
Default constructor.
|
virtualdefault |
QgsMeshDatasetGroup::QgsMeshDatasetGroup | ( | const QString & | name | ) |
Constructor with the name of the dataset group.
Definition at line 1017 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroup::QgsMeshDatasetGroup | ( | const QString & | name, |
QgsMeshDatasetGroupMetadata::DataType | dataType | ||
) |
Constructor with the name of the dataset group and the dataTYpe.
Definition at line 1013 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::addExtraMetadata | ( | QString | key, |
QString | value | ||
) |
Adds extra metadata to the group.
Definition at line 1055 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::calculateStatistic | ( | ) |
Calculates the statistics (minimum and maximum)
Definition at line 975 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroup::checkValueCountPerDataset | ( | int | count | ) | const |
Returns whether all the datasets contain count values.
Definition at line 1005 of file qgsmeshdataset.cpp.
|
pure virtual |
Returns the dataset with index.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
|
pure virtual |
Returns the count of datasets in the group.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
|
virtual |
Returns the dataset group variable name which this dataset group depends on.
Reimplemented in QgsMeshVirtualDatasetGroup.
Definition at line 990 of file qgsmeshdataset.cpp.
|
pure virtual |
Returns the metadata of the dataset with index datasetIndex.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
QgsMeshDatasetGroupMetadata::DataType QgsMeshDatasetGroup::dataType | ( | ) | const |
Returns the data type of the dataset group.
Definition at line 1045 of file qgsmeshdataset.cpp.
|
virtual |
Returns some information about the dataset group.
Reimplemented in QgsMeshVirtualDatasetGroup.
Definition at line 995 of file qgsmeshdataset.cpp.
QMap< QString, QString > QgsMeshDatasetGroup::extraMetadata | ( | ) | const |
Returns all the extra metadata of the group.
Definition at line 1060 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupMetadata QgsMeshDatasetGroup::groupMetadata | ( | ) | const |
Returns the metadata of the dataset group.
Definition at line 913 of file qgsmeshdataset.cpp.
|
pure virtual |
Initialize the dataset group.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
bool QgsMeshDatasetGroup::isScalar | ( | ) | const |
Returns whether the group contain scalar values.
Definition at line 1065 of file qgsmeshdataset.cpp.
double QgsMeshDatasetGroup::maximum | ( | ) | const |
Returns the maximum value of the whole dataset group.
Definition at line 1024 of file qgsmeshdataset.cpp.
double QgsMeshDatasetGroup::minimum | ( | ) | const |
Returns the minimum value of the whole dataset group.
Definition at line 1019 of file qgsmeshdataset.cpp.
QString QgsMeshDatasetGroup::name | ( | ) | const |
Returns the name of the dataset group.
Definition at line 1035 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::setDataType | ( | const QgsMeshDatasetGroupMetadata::DataType & | dataType | ) |
Sets the data type of the dataset group.
Definition at line 1050 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::setIsScalar | ( | bool | isScalar | ) |
Sets whether the group contain scalar values.
Definition at line 1070 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::setMinimumMaximum | ( | double | min, |
double | max | ||
) |
Overrides the minimum and the maximum value of the whole dataset group.
Definition at line 1029 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::setName | ( | const QString & | name | ) |
Sets the name of the dataset group.
Definition at line 1040 of file qgsmeshdataset.cpp.
void QgsMeshDatasetGroup::setReferenceTime | ( | const QDateTime & | referenceTime | ) |
Sets the reference time of the dataset group.
Definition at line 1000 of file qgsmeshdataset.cpp.
|
pure virtual |
Returns the type of dataset group.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
|
pure virtual |
Write dataset group information in a DOM element.
Implemented in QgsMeshVirtualDatasetGroup, QgsMeshMemoryDatasetGroup, and QgsMeshZValueDatasetGroup.
|
protected |
Definition at line 675 of file qgsmeshdataset.h.
|
protected |
Definition at line 677 of file qgsmeshdataset.h.
|
protected |
Definition at line 676 of file qgsmeshdataset.h.
|
protected |
Definition at line 673 of file qgsmeshdataset.h.