18 #ifndef QGSMESHMEMORYDATAPROVIDER_H 19 #define QGSMESHMEMORYDATAPROVIDER_H 27 #include "qgis_core.h" 32 struct QgsMeshMemoryDataset
34 QVector<QgsMeshDatasetValue> values;
39 struct QgsMeshMemoryDatasetGroup
41 QMap<QString, QString> metadata;
42 QVector<QgsMeshMemoryDataset> datasets;
45 bool isOnVertices =
true;
83 bool isValid()
const override;
84 QString name()
const override;
85 QString description()
const override;
88 int vertexCount()
const override;
89 int faceCount()
const override;
123 bool addDataset(
const QString &uri )
override;
124 QStringList extraDatasets()
const override;
125 int datasetGroupCount()
const override;
126 int datasetCount(
int groupIndex )
const override;
134 static QString providerKey();
136 static QString providerDescription();
140 bool splitMeshSections(
const QString &uri );
141 bool addMeshVertices(
const QString &def );
142 bool addMeshFaces(
const QString &def );
144 bool splitDatasetSections(
const QString &uri, QgsMeshMemoryDatasetGroup &datasetGroup );
145 bool setDatasetGroupType(
const QString &uri, QgsMeshMemoryDatasetGroup &datasetGroup );
146 bool addDatasetGroupMetadata(
const QString &def, QgsMeshMemoryDatasetGroup &datasetGroup );
147 bool addDatasetValues(
const QString &def, QgsMeshMemoryDataset &dataset,
bool isScalar );
148 bool checkDatasetValidity( QgsMeshMemoryDataset &dataset,
bool isOnVertices );
150 QVector<QgsMeshVertex> mVertices;
151 QVector<QgsMeshFace> mFaces;
152 QVector<QgsMeshMemoryDatasetGroup> mDatasetGroups;
154 bool mIsValid =
false;
155 QStringList mExtraDatasetUris;
160 #endif // QGSMESHMEMORYDATAPROVIDER_H const QgsCoordinateReferenceSystem & crs
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).
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
QgsMeshDatasetValue represents single dataset value.