QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
QgsMeshDatasetGroupMetadata is a collection of dataset group metadata such as whether the data is vector or scalar, name. More...
#include <qgsmeshdataset.h>
Public Types | |
enum | DataType { DataOnFaces = 0 , DataOnVertices , DataOnVolumes , DataOnEdges } |
Location of where data is specified for datasets in the dataset group. More... | |
Public Member Functions | |
QgsMeshDatasetGroupMetadata ()=default | |
Constructs an empty metadata object. More... | |
QgsMeshDatasetGroupMetadata (const QString &name, const QString uri, bool isScalar, DataType dataType, double minimum, double maximum, int maximumVerticalLevels, const QDateTime &referenceTime, bool isTemporal, const QMap< QString, QString > &extraOptions) | |
Constructs a valid metadata object. More... | |
DataType | dataType () const |
Returns whether dataset group data is defined on vertices or faces or volumes. More... | |
QMap< QString, QString > | extraOptions () const |
Returns extra metadata options, for example description. More... | |
bool | isScalar () const |
Returns whether dataset group has scalar data. More... | |
bool | isTemporal () const |
Returns whether the dataset group is temporal (contains time-related dataset) More... | |
bool | isVector () const |
Returns whether dataset group has vector data. More... | |
double | maximum () const |
Returns maximum scalar value/vector magnitude present for whole dataset group. More... | |
int | maximumVerticalLevelsCount () const |
Returns maximum number of vertical levels for 3d stacked meshes. More... | |
double | minimum () const |
Returns minimum scalar value/vector magnitude present for whole dataset group. More... | |
QString | name () const |
Returns name of the dataset group. More... | |
QDateTime | referenceTime () const |
Returns the reference time. More... | |
QString | uri () const |
Returns the uri of the source. More... | |
QgsMeshDatasetGroupMetadata is a collection of dataset group metadata such as whether the data is vector or scalar, name.
Definition at line 351 of file qgsmeshdataset.h.
Location of where data is specified for datasets in the dataset group.
Definition at line 356 of file qgsmeshdataset.h.
|
default |
Constructs an empty metadata object.
QgsMeshDatasetGroupMetadata::QgsMeshDatasetGroupMetadata | ( | const QString & | name, |
const QString | uri, | ||
bool | isScalar, | ||
DataType | dataType, | ||
double | minimum, | ||
double | maximum, | ||
int | maximumVerticalLevels, | ||
const QDateTime & | referenceTime, | ||
bool | isTemporal, | ||
const QMap< QString, QString > & | extraOptions | ||
) |
Constructs a valid metadata object.
name | name of the dataset group |
isScalar | dataset contains scalar data, specifically the y-value of QgsMeshDatasetValue is NaN |
dataType | where the data are defined on (vertices, faces or volumes) |
minimum | minimum value (magnitude for vectors) present among all group's dataset values |
maximum | maximum value (magnitude for vectors) present among all group's dataset values |
maximumVerticalLevels | maximum number of vertical levels for 3d stacked meshes, 0 for 2d meshes |
referenceTime | reference time of the dataset group |
isTemporal | weither the dataset group is temporal (contains time-related dataset) |
extraOptions | dataset's extra options stored by the provider. Usually contains the name, time value, time units, data file vendor, ... |
uri | The uri of the dataset |
Definition at line 124 of file qgsmeshdataset.cpp.
QgsMeshDatasetGroupMetadata::DataType QgsMeshDatasetGroupMetadata::dataType | ( | ) | const |
Returns whether dataset group data is defined on vertices or faces or volumes.
Definition at line 172 of file qgsmeshdataset.cpp.
QMap< QString, QString > QgsMeshDatasetGroupMetadata::extraOptions | ( | ) | const |
Returns extra metadata options, for example description.
Definition at line 147 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroupMetadata::isScalar | ( | ) | const |
Returns whether dataset group has scalar data.
Definition at line 157 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroupMetadata::isTemporal | ( | ) | const |
Returns whether the dataset group is temporal (contains time-related dataset)
Definition at line 162 of file qgsmeshdataset.cpp.
bool QgsMeshDatasetGroupMetadata::isVector | ( | ) | const |
Returns whether dataset group has vector data.
Definition at line 152 of file qgsmeshdataset.cpp.
double QgsMeshDatasetGroupMetadata::maximum | ( | ) | const |
Returns maximum scalar value/vector magnitude present for whole dataset group.
Definition at line 182 of file qgsmeshdataset.cpp.
int QgsMeshDatasetGroupMetadata::maximumVerticalLevelsCount | ( | ) | const |
Returns maximum number of vertical levels for 3d stacked meshes.
Definition at line 187 of file qgsmeshdataset.cpp.
double QgsMeshDatasetGroupMetadata::minimum | ( | ) | const |
Returns minimum scalar value/vector magnitude present for whole dataset group.
Definition at line 177 of file qgsmeshdataset.cpp.
QString QgsMeshDatasetGroupMetadata::name | ( | ) | const |
Returns name of the dataset group.
Definition at line 167 of file qgsmeshdataset.cpp.
QDateTime QgsMeshDatasetGroupMetadata::referenceTime | ( | ) | const |
QString QgsMeshDatasetGroupMetadata::uri | ( | ) | const |