QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
QgsMeshDatasetGroupMetadata is a collection of dataset group metadata such as whether the data is vector or scalar, name. More...
#include <qgsmeshdataprovider.h>
Public Types | |
enum | DataType { DataOnFaces, DataOnVertices } |
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, bool isScalar, bool isOnVertices, double minimum, double maximum, 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. 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 | 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... | |
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... | |
QgsMeshDatasetGroupMetadata is a collection of dataset group metadata such as whether the data is vector or scalar, name.
Definition at line 240 of file qgsmeshdataprovider.h.
Location of where data is specified for datasets in the dataset group.
Enumerator | |
---|---|
DataOnFaces | Data is defined on faces. |
DataOnVertices | Data is defined on vertices. |
Definition at line 245 of file qgsmeshdataprovider.h.
|
default |
Constructs an empty metadata object.
QgsMeshDatasetGroupMetadata::QgsMeshDatasetGroupMetadata | ( | const QString & | name, |
bool | isScalar, | ||
bool | isOnVertices, | ||
double | minimum, | ||
double | maximum, | ||
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 |
isOnVertices | dataset values are defined on mesh's vertices. If false , values are defined on faces. |
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 |
extraOptions | dataset's extra options stored by the provider. Usually contains the name, time value, time units, data file vendor, ... |
Definition at line 130 of file qgsmeshdataprovider.cpp.
QgsMeshDatasetGroupMetadata::DataType QgsMeshDatasetGroupMetadata::dataType | ( | ) | const |
Returns whether dataset group data is defined on vertices or faces.
Definition at line 165 of file qgsmeshdataprovider.cpp.
QMap< QString, QString > QgsMeshDatasetGroupMetadata::extraOptions | ( | ) | const |
Returns extra metadata options, for example description.
Definition at line 145 of file qgsmeshdataprovider.cpp.
bool QgsMeshDatasetGroupMetadata::isScalar | ( | ) | const |
Returns whether dataset group has scalar data.
Definition at line 155 of file qgsmeshdataprovider.cpp.
bool QgsMeshDatasetGroupMetadata::isVector | ( | ) | const |
Returns whether dataset group has vector data.
Definition at line 150 of file qgsmeshdataprovider.cpp.
double QgsMeshDatasetGroupMetadata::maximum | ( | ) | const |
Returns maximum scalar value/vector magnitude present for whole dataset group.
Definition at line 175 of file qgsmeshdataprovider.cpp.
double QgsMeshDatasetGroupMetadata::minimum | ( | ) | const |
Returns minimum scalar value/vector magnitude present for whole dataset group.
Definition at line 170 of file qgsmeshdataprovider.cpp.
QString QgsMeshDatasetGroupMetadata::name | ( | ) | const |
Returns name of the dataset group.
Definition at line 160 of file qgsmeshdataprovider.cpp.