18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 30 struct QgsMeshLayerRendererCache;
106 : transformContext( transformContext )
124 bool skipCrsValidation =
false;
140 explicit QgsMeshLayer(
const QString &path = QString(),
const QString &baseName = QString(),
const QString &providerLib = QStringLiteral(
"mesh_memory" ),
155 bool readSymbology( const QDomNode &node, QString &errorMessage,
157 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
159 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
160 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const override;
162 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
164 void reload() override;
167 QString providerType() const;
174 QgsMesh *nativeMesh() SIP_SKIP;
181 const
QgsMesh *nativeMesh() const SIP_SKIP;
202 QgsMeshLayerRendererCache *rendererCache() SIP_SKIP;
229 QString formatTime(
double hours );
279 void timeSettingsChanged( );
286 bool isReadOnly()
const override {
return true;}
300 void fillNativeMesh();
301 void assignDefaultStyleToDatasetGroup(
int groupIndex );
302 void setDefaultRendererSettings();
305 void onDatasetGroupsAdded(
int count );
312 std::unique_ptr<QgsMesh> mNativeMesh;
315 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
318 std::unique_ptr<QgsMeshLayerRendererCache> mRendererCache;
328 #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.
QgsCoordinateTransformContext transformContext
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.
Contains information about the context in which a coordinate transform is executed.
LayerOptions(const QgsCoordinateTransformContext &transformContext=QgsCoordinateTransformContext())
Constructor for LayerOptions with optional transformContext.
Represents a mesh time settings for mesh 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.
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.