18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 116 explicit QgsMeshLayer(
const QString &path = QString(),
const QString &baseName = QString(),
const QString &providerLib =
"mesh_memory",
130 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context ) override;
131 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context ) const override;
132 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
133 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const override;
135 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
138 QString providerType() const;
141 QgsMesh *nativeMesh() SIP_SKIP;
177 int activeScalarDataset()
const {
return mActiveScalarDataset; }
193 bool isReadOnly()
const override {
return true;}
207 void fillNativeMesh();
214 QString mProviderKey;
217 std::unique_ptr<QgsMesh> mNativeMesh;
220 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
234 #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.
int activeVectorDataset() const
Returns active vector dataset.
Represents a mesh renderer settings for mesh object.
Represents a mesh renderer settings for scalar datasets.
Setting options for loading mesh layers.
const int NO_ACTIVE_MESH_DATASET
Represents a mesh renderer settings for vector datasets.
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.
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.