18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 29 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;
146 QgsMesh *nativeMesh() SIP_SKIP;
153 const
QgsMesh *nativeMesh() const SIP_SKIP;
174 QgsMeshLayerRendererCache *rendererCache() SIP_SKIP;
219 bool isReadOnly()
const override {
return true;}
233 void fillNativeMesh();
234 void assignDefaultStyleToDatasetGroup(
int groupIndex );
235 void setDefaultRendererSettings();
238 void onDatasetGroupsAdded(
int count );
245 std::unique_ptr<QgsMesh> mNativeMesh;
248 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
251 std::unique_ptr<QgsMeshLayerRendererCache> mRendererCache;
257 #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.