QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSMESHDATASETGROUPSTORE_H
19 #define QGSMESHDATASETGROUPSTORE_H
69 bool addDataset(
const QString &uri )
override;
76 const QString &outputDriver,
79 const QVector<QgsMeshDataBlock> &datasetActive,
80 const QVector<double> × )
override;
84 const QString &outputDriver,
86 int datasetGroupIndex )
override;
95 std::vector<std::unique_ptr<QgsMeshDatasetGroup>> mGroups;
124 typedef QPair<QgsMeshDatasetSourceInterface *, int> DatasetGroup;
237 void onPersistentDatasetAdded(
int count );
242 QList<int> mPersistentExtraDatasetGroupIndexes;
243 std::unique_ptr<QgsMeshExtraDatasetStore> mExtraDatasets;
244 QMap < int, DatasetGroup> mRegistery;
245 std::unique_ptr<QgsMeshDatasetGroupTreeItem> mDatasetGroupTreeRootItem;
247 void removePersistentProvider();
249 DatasetGroup datasetGroup(
int index )
const;
252 int registerDatasetGroup(
const DatasetGroup &group );
254 void createDatasetGroupTreeItems(
const QList<int> &indexes );
257 void eraseDatasetGroup(
const DatasetGroup &group );
260 void eraseExtraDataset(
int indexInExtraStore );
263 void removeUnregisteredItemFromTree();
264 void unregisterGroupNotPresentInTree();
266 void syncItemToDatasetGroup(
int groupIndex );
269 #endif // QGSMESHDATASETGROUPSTORE_H
QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context)
Writes the store's information in a DOM document.
QgsMeshDatasetValue datasetValue(const QgsMeshDatasetIndex &index, int valueIndex) const
Returns the value of the dataset with global index and valueIndex.
void setPersistentProvider(QgsMeshDataProvider *provider, const QStringList &extraDatasetUri)
Sets the persistent mesh data provider with the path of its extra dataset.
QgsMesh3dDataBlock dataset3dValues(const QgsMeshDatasetIndex &index, int faceIndex, int count) const
Returns count 3D values of the dataset with global index and from valueIndex.
The class is used as a container of context for various read/write operations on other objects.
void setDatasetGroupTreeItem(const QgsMeshDatasetGroupTreeItem *rootItem)
Sets the root of the dataset groups tree item.
bool addDatasetGroup(QgsMeshDatasetGroup *group)
Adds a extra dataset group, take ownership.
QgsMeshDatasetGroupMetadata datasetGroupMetadata(const QgsMeshDatasetIndex &index) const
Returns the metadata of the dataset group with global index.
QgsMeshDatasetValue represents single dataset value.
QgsMeshDataBlock areFacesActive(const QgsMeshDatasetIndex &index, int faceIndex, int count) const
Returns whether faces are active for particular dataset.
Tree item for display of the mesh dataset groups. Dataset group is set of datasets with the same name...
int datasetGroupCount() const
Returns the count of dataset groups.
QgsMesh3dDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame.
int globalDatasetGroupIndexInSource(QgsMeshDatasetSourceInterface *source, int nativeGroupIndex) const
Returns the global dataset group index of the dataset group with native index globalGroupIndex in the...
Class used to register and access all the dataset groups related to a mesh layer.
int extraDatasetGroupCount() const
Returns the count of extra dataset groups.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g. wind speed) and a dataset in thi...
QgsMeshDatasetGroupTreeItem * datasetGroupTreeItem() const
Returns a pointer to the root of the dataset groups tree item.
QList< int > datasetGroupIndexes() const
Returns a list of all group indexes.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
void resetDatasetGroupTreeItem()
Resets to default state the dataset groups tree item.
Base class for providing data for QgsMeshLayer.
MatchingTemporalDatasetMethod
Method for selection of temporal mesh dataset from a range time.
QgsMeshDatasetMetadata datasetMetadata(const QgsMeshDatasetIndex &index) const
Returns the metadata of the dataset with global index.
Interface for mesh datasets and dataset groups.
Abstract class that represents a dataset group.
int datasetCount(int groupIndex) const
Returns the total count of dataset group in the store.
bool hasTemporalCapabilities() const
Returns whether at lea&st one of stored dataset group is temporal.
bool isFaceActive(const QgsMeshDatasetIndex &index, int faceIndex) const
Returns whether face is active for particular dataset.
QgsMeshDatasetGroupStore(QgsMeshLayer *layer)
Constructor.
void datasetGroupsAdded(QList< int > indexes)
Emitted after dataset groups are added.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
void readXml(const QDomElement &storeElem, const QgsReadWriteContext &context)
Reads the store's information from a DOM document.
bool saveDatasetGroup(QString filePath, int groupIndex, QString driver)
Saves on a file with filePath the dataset groups index with groupIndex with the specified driver.
bool addPersistentDatasets(const QString &path)
Adds persistent datasets from a file with path.
QgsMeshDataBlock datasetValues(const QgsMeshDatasetIndex &index, int valueIndex, int count) const
Returns count values of the dataset with global index and from valueIndex.
QgsMeshDatasetIndex datasetIndexAtTime(qint64 time, int groupIndex, QgsMeshDataProviderTemporalCapabilities::MatchingTemporalDatasetMethod method) const
Returns the global dataset index of the dataset int the dataset group with groupIndex,...
QList< int > enabledDatasetGroupIndexes() const
Returns a list of all group indexes that are enabled.
qint64 datasetRelativeTime(const QgsMeshDatasetIndex &index) const
Returns the relative time of the dataset from the persistent provider reference time.
QList< QgsMeshDatasetIndex > datasetIndexInTimeInterval(qint64 time1, qint64 time2, int groupIndex) const
Returns the global dataset index of the dataset int the dataset group with groupIndex,...