QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsMeshDatasetGroup Class Referenceabstract

Abstract class that represents a dataset group. More...

#include <qgsmeshdataset.h>

Inheritance diagram for QgsMeshDatasetGroup:

Public Types

enum  Type { Unknown , Persistent , Memory , Virtual }
 Type of the dataset group. More...

Public Member Functions

 QgsMeshDatasetGroup ()=default
 QgsMeshDatasetGroup (const QString &name)
 Constructor with the name of the dataset group.
 QgsMeshDatasetGroup (const QString &name, QgsMeshDatasetGroupMetadata::DataType dataType)
 Constructor with the name of the dataset group and the dataTYpe.
virtual ~QgsMeshDatasetGroup ()
void addExtraMetadata (QString key, QString value)
 Adds extra metadata to the group.
void calculateStatistic () const
 Calculates the statistics (minimum and maximum).
bool checkValueCountPerDataset (int count) const
 Returns whether all the datasets contain count values.
virtual QgsMeshDatasetdataset (int index) const =0
 Returns the dataset with index.
virtual int datasetCount () const =0
 Returns the count of datasets in the group.
virtual QStringList datasetGroupNamesDependentOn () const
 Returns the dataset group variable name which this dataset group depends on.
virtual QgsMeshDatasetMetadata datasetMetadata (int datasetIndex) const =0
 Returns the metadata of the dataset with index datasetIndex.
QgsMeshDatasetGroupMetadata::DataType dataType () const
 Returns the data type of the dataset group.
virtual QString description () const
 Returns some information about the dataset group.
QMap< QString, QString > extraMetadata () const
 Returns all the extra metadata of the group.
QgsMeshDatasetGroupMetadata groupMetadata () const
 Returns the metadata of the dataset group.
virtual void initialize ()=0
 Initialize the dataset group.
bool isScalar () const
 Returns whether the group contain scalar values.
double maximum () const
 Returns the maximum value of the whole dataset group.
double minimum () const
 Returns the minimum value of the whole dataset group.
QString name () const
 Returns the name of the dataset group.
void setDataType (const QgsMeshDatasetGroupMetadata::DataType &dataType)
 Sets the data type of the dataset group.
void setIsScalar (bool isScalar)
 Sets whether the group contain scalar values.
void setMinimumMaximum (double min, double max) const
 Overrides the minimum and the maximum value of the whole dataset group.
void setName (const QString &name)
 Sets the name of the dataset group.
void setReferenceTime (const QDateTime &referenceTime)
 Sets the reference time of the dataset group.
void setStatisticObsolete () const
 Sets statistic obsolete, that means statistic will be recalculated when requested.
virtual QgsMeshDatasetGroup::Type type () const =0
 Returns the type of dataset group.
virtual QDomElement writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const =0
 Write dataset group information in a DOM element.

Protected Attributes

QgsMeshDatasetGroupMetadata::DataType mDataType = QgsMeshDatasetGroupMetadata::DataOnVertices
bool mIsScalar = true
QMap< QString, QString > mMetadata
QString mName

Detailed Description

Abstract class that represents a dataset group.

Since
QGIS 3.16

Definition at line 597 of file qgsmeshdataset.h.

Member Enumeration Documentation

◆ Type

Type of the dataset group.

Since
QGIS 3.16
Enumerator
Unknown 

Generic type used for non typed dataset group.

Persistent 

Dataset group store in a file.

Memory 

Temporary dataset group in memory.

Virtual 

Virtual Dataset group defined by a formula.

Definition at line 606 of file qgsmeshdataset.h.

Constructor & Destructor Documentation

◆ QgsMeshDatasetGroup() [1/3]

QgsMeshDatasetGroup::QgsMeshDatasetGroup ( )
default

◆ ~QgsMeshDatasetGroup()

QgsMeshDatasetGroup::~QgsMeshDatasetGroup ( )
virtualdefault

◆ QgsMeshDatasetGroup() [2/3]

QgsMeshDatasetGroup::QgsMeshDatasetGroup ( const QString & name)

Constructor with the name of the dataset group.

Definition at line 1110 of file qgsmeshdataset.cpp.

◆ QgsMeshDatasetGroup() [3/3]

QgsMeshDatasetGroup::QgsMeshDatasetGroup ( const QString & name,
QgsMeshDatasetGroupMetadata::DataType dataType )

Constructor with the name of the dataset group and the dataTYpe.

Definition at line 1105 of file qgsmeshdataset.cpp.

Member Function Documentation

◆ addExtraMetadata()

void QgsMeshDatasetGroup::addExtraMetadata ( QString key,
QString value )

Adds extra metadata to the group.

Definition at line 1150 of file qgsmeshdataset.cpp.

◆ calculateStatistic()

void QgsMeshDatasetGroup::calculateStatistic ( ) const

Calculates the statistics (minimum and maximum).

Definition at line 1051 of file qgsmeshdataset.cpp.

◆ checkValueCountPerDataset()

bool QgsMeshDatasetGroup::checkValueCountPerDataset ( int count) const

Returns whether all the datasets contain count values.

Definition at line 1097 of file qgsmeshdataset.cpp.

◆ dataset()

virtual QgsMeshDataset * QgsMeshDatasetGroup::dataset ( int index) const
pure virtual

◆ datasetCount()

virtual int QgsMeshDatasetGroup::datasetCount ( ) const
pure virtual

◆ datasetGroupNamesDependentOn()

QStringList QgsMeshDatasetGroup::datasetGroupNamesDependentOn ( ) const
virtual

Returns the dataset group variable name which this dataset group depends on.

Reimplemented in QgsMeshVirtualDatasetGroup.

Definition at line 1061 of file qgsmeshdataset.cpp.

◆ datasetMetadata()

virtual QgsMeshDatasetMetadata QgsMeshDatasetGroup::datasetMetadata ( int datasetIndex) const
pure virtual

Returns the metadata of the dataset with index datasetIndex.

Implemented in QgsMeshMemoryDatasetGroup, QgsMeshVerticesElevationDatasetGroup, QgsMeshVirtualDatasetGroup, and QgsMeshZValueDatasetGroup.

◆ dataType()

QgsMeshDatasetGroupMetadata::DataType QgsMeshDatasetGroup::dataType ( ) const

Returns the data type of the dataset group.

Definition at line 1140 of file qgsmeshdataset.cpp.

◆ description()

QString QgsMeshDatasetGroup::description ( ) const
virtual

Returns some information about the dataset group.

Reimplemented in QgsMeshVirtualDatasetGroup.

Definition at line 1066 of file qgsmeshdataset.cpp.

◆ extraMetadata()

QMap< QString, QString > QgsMeshDatasetGroup::extraMetadata ( ) const

Returns all the extra metadata of the group.

Definition at line 1155 of file qgsmeshdataset.cpp.

◆ groupMetadata()

QgsMeshDatasetGroupMetadata QgsMeshDatasetGroup::groupMetadata ( ) const

Returns the metadata of the dataset group.

Definition at line 989 of file qgsmeshdataset.cpp.

◆ initialize()

virtual void QgsMeshDatasetGroup::initialize ( )
pure virtual

◆ isScalar()

bool QgsMeshDatasetGroup::isScalar ( ) const

Returns whether the group contain scalar values.

Definition at line 1160 of file qgsmeshdataset.cpp.

◆ maximum()

double QgsMeshDatasetGroup::maximum ( ) const

Returns the maximum value of the whole dataset group.

Definition at line 1118 of file qgsmeshdataset.cpp.

◆ minimum()

double QgsMeshDatasetGroup::minimum ( ) const

Returns the minimum value of the whole dataset group.

Definition at line 1112 of file qgsmeshdataset.cpp.

◆ name()

QString QgsMeshDatasetGroup::name ( ) const

Returns the name of the dataset group.

Definition at line 1130 of file qgsmeshdataset.cpp.

◆ setDataType()

void QgsMeshDatasetGroup::setDataType ( const QgsMeshDatasetGroupMetadata::DataType & dataType)

Sets the data type of the dataset group.

Definition at line 1145 of file qgsmeshdataset.cpp.

◆ setIsScalar()

void QgsMeshDatasetGroup::setIsScalar ( bool isScalar)

Sets whether the group contain scalar values.

Definition at line 1165 of file qgsmeshdataset.cpp.

◆ setMinimumMaximum()

void QgsMeshDatasetGroup::setMinimumMaximum ( double min,
double max ) const

Overrides the minimum and the maximum value of the whole dataset group.

Definition at line 1124 of file qgsmeshdataset.cpp.

◆ setName()

void QgsMeshDatasetGroup::setName ( const QString & name)

Sets the name of the dataset group.

Definition at line 1135 of file qgsmeshdataset.cpp.

◆ setReferenceTime()

void QgsMeshDatasetGroup::setReferenceTime ( const QDateTime & referenceTime)

Sets the reference time of the dataset group.

Definition at line 1071 of file qgsmeshdataset.cpp.

◆ setStatisticObsolete()

void QgsMeshDatasetGroup::setStatisticObsolete ( ) const

Sets statistic obsolete, that means statistic will be recalculated when requested.

Definition at line 1056 of file qgsmeshdataset.cpp.

◆ type()

virtual QgsMeshDatasetGroup::Type QgsMeshDatasetGroup::type ( ) const
pure virtual

◆ writeXml()

virtual QDomElement QgsMeshDatasetGroup::writeXml ( QDomDocument & doc,
const QgsReadWriteContext & context ) const
pure virtual

Write dataset group information in a DOM element.

Implemented in QgsMeshMemoryDatasetGroup, QgsMeshVerticesElevationDatasetGroup, QgsMeshVirtualDatasetGroup, and QgsMeshZValueDatasetGroup.

Member Data Documentation

◆ mDataType

Definition at line 697 of file qgsmeshdataset.h.

◆ mIsScalar

bool QgsMeshDatasetGroup::mIsScalar = true
protected

Definition at line 699 of file qgsmeshdataset.h.

◆ mMetadata

QMap<QString, QString> QgsMeshDatasetGroup::mMetadata
protected

Definition at line 698 of file qgsmeshdataset.h.

◆ mName

QString QgsMeshDatasetGroup::mName
protected

Definition at line 695 of file qgsmeshdataset.h.


The documentation for this class was generated from the following files: