18 #ifndef QGSMESHVIRTUALDATASETGROUP_H
19 #define QGSMESHVIRTUALDATASETGROUP_H
51 const QString &formulaString,
53 qint64 relativeStartTime,
54 qint64 relativeEndTime );
67 std::unique_ptr<QgsMeshCalcNode> mCalcNode;
69 qint64 mStartTime = 0;
71 QStringList mDatasetGroupNameUsed;
72 QStringList mDatasetGroupNameUsedForAggregate;
73 QList<qint64> mDatasetTimes;
75 mutable std::shared_ptr<QgsMeshMemoryDataset> mCacheDataset;
76 mutable QVector<QgsMeshDatasetMetadata> mDatasetMetaData;
77 mutable int mCurrentDatasetIndex = -1;
79 bool calculateDataset()
const;
Abstract class that represents a dataset group.
virtual QgsMeshDatasetMetadata datasetMetadata(int datasetIndex) const =0
Returns the metadata of the dataset with index datasetIndex.
virtual QgsMeshDataset * dataset(int index) const =0
Returns the dataset with index.
virtual QStringList datasetGroupNamesDependentOn() const
Returns the dataset group variable name which this dataset group depends on.
virtual QString description() const
Returns some information about the dataset group.
Type
Type of the dataset group.
@ Virtual
Temporary dataset group in memory.
virtual void initialize()=0
Initialize the dataset group.
virtual QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Write dataset group information in a DOM element.
virtual int datasetCount() const =0
Returns the count of datasets in the group.
Abstract class that represents a dataset.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Represents a dataset group calculated from a formula string.
QgsMeshDatasetGroup::Type type() const override
Returns the type of dataset group.
The class is used as a container of context for various read/write operations on other objects.