18 #ifndef QGSMESHMEMORYDATAPROVIDER_H 19 #define QGSMESHMEMORYDATAPROVIDER_H 27 #include "qgis_core.h" 32 struct QgsMeshMemoryDataset
34 QMap<QString, QString> metadata;
35 QVector<QgsMeshDatasetValue> values;
37 bool isOnVertices =
true;
76 bool isValid()
const override;
77 QString name()
const override;
78 QString description()
const override;
81 int vertexCount()
const override;
82 int faceCount()
const override;
110 bool addDataset(
const QString &uri )
override;
111 int datasetCount()
const override;
117 static QString providerKey();
119 static QString providerDescription();
123 bool splitMeshSections(
const QString &uri );
124 bool addMeshVertices(
const QString &def );
125 bool addMeshFaces(
const QString &def );
127 bool splitDatasetSections(
const QString &uri, QgsMeshMemoryDataset &dataset );
128 bool setDatasetType(
const QString &uri, QgsMeshMemoryDataset &dataset );
129 bool addDatasetMetadata(
const QString &def, QgsMeshMemoryDataset &dataset );
130 bool addDatasetValues(
const QString &def, QgsMeshMemoryDataset &dataset );
131 bool checkDatasetValidity( QgsMeshMemoryDataset &dataset );
133 QVector<QgsMeshVertex> mVertices;
134 QVector<QgsMeshFace> mFaces;
135 QVector<QgsMeshMemoryDataset> mDatasets;
137 bool mIsValid =
false;
142 #endif // QGSMESHMEMORYDATAPROVIDER_H
Point geometry type, with support for z-dimension and m-values.
Base class for providing data for QgsMeshLayer.
Setting options for creating vector data providers.
QVector< int > QgsMeshFace
List of vertex indexes.
This class represents a coordinate reference system (CRS).
QgsMeshDatasetValue represents single mesh dataset value.