18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 30 struct QgsMeshLayerRendererCache;
106 : transformContext( transformContext )
125 explicit QgsMeshLayer(
const QString &path = QString(),
const QString &baseName = QString(),
const QString &providerLib = QStringLiteral(
"mesh_memory" ),
140 bool readSymbology( const QDomNode &node, QString &errorMessage,
142 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
144 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
145 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const override;
147 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
149 void reload() override;
152 QString providerType() const;
159 QgsMesh *nativeMesh() SIP_SKIP;
166 const
QgsMesh *nativeMesh() const SIP_SKIP;
187 QgsMeshLayerRendererCache *rendererCache() SIP_SKIP;
214 QString formatTime(
double hours );
264 void timeSettingsChanged( );
271 bool isReadOnly()
const override {
return true;}
285 void fillNativeMesh();
286 void assignDefaultStyleToDatasetGroup(
int groupIndex );
287 void setDefaultRendererSettings();
290 void onDatasetGroupsAdded(
int count );
297 std::unique_ptr<QgsMesh> mNativeMesh;
300 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
303 std::unique_ptr<QgsMeshLayerRendererCache> mRendererCache;
313 #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.