18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 30 struct QgsMeshLayerRendererCache;
115 explicit QgsMeshLayer(
const QString &path = QString(),
const QString &baseName = QString(),
const QString &providerLib =
"mesh_memory",
129 bool readSymbology( const QDomNode &node, QString &errorMessage,
131 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
133 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
134 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const override;
136 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
139 QString providerType() const;
142 QgsMesh *nativeMesh() SIP_SKIP;
148 QgsMeshLayerRendererCache *rendererCache() SIP_SKIP;
193 bool isReadOnly()
const override {
return true;}
207 void fillNativeMesh();
208 void assignDefaultStyleToDatasetGroup(
int groupIndex );
211 void onDatasetGroupsAdded(
int count );
218 QString mProviderKey;
221 std::unique_ptr<QgsMesh> mNativeMesh;
224 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
227 std::unique_ptr<QgsMeshLayerRendererCache> mRendererCache;
233 #endif //QGSMESHLAYER_H The class is used as a container of context for various read/write operations on other objects...
A rectangle specified with double values.
Base class for all map layer types.
Triangular/Derived Mesh is mesh with vertices in map coordinates.
Abstract base class for all rendered symbols.
A class to represent a 2D point.
Setting options for loading mesh layers.
Represents all mesh renderer settings.
Base class for providing data for QgsMeshLayer.
Contains information about the context of a rendering operation.
Setting options for creating vector data providers.
Mesh - vertices and faces.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Represents a mesh layer supporting display of data on structured or unstructured meshes.
QgsMeshDatasetValue represents single dataset value.