18 #ifndef QGSMESHLAYER_H 19 #define QGSMESHLAYER_H 23 #include "qgis_core.h" 30 struct QgsMeshLayerRendererCache;
107 : transformContext( transformContext )
125 bool skipCrsValidation =
false;
141 explicit QgsMeshLayer(
const QString &path = QString(),
const QString &baseName = QString(),
const QString &providerLib = QStringLiteral(
"mesh_memory" ),
156 bool readSymbology( const QDomNode &node, QString &errorMessage,
158 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
160 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
161 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const override;
163 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
165 void reload() override;
168 QString providerType() const;
175 QgsMesh *nativeMesh() SIP_SKIP;
182 const
QgsMesh *nativeMesh() const SIP_SKIP;
203 QgsMeshLayerRendererCache *rendererCache() SIP_SKIP;
230 QString formatTime(
double hours );
297 void timeSettingsChanged( );
304 bool isReadOnly()
const override {
return true;}
318 void fillNativeMesh();
319 void assignDefaultStyleToDatasetGroup(
int groupIndex );
320 void setDefaultRendererSettings();
323 void onDatasetGroupsAdded(
int count );
330 std::unique_ptr<QgsMesh> mNativeMesh;
333 std::unique_ptr<QgsTriangularMesh> mTriangularMesh;
336 std::unique_ptr<QgsMeshLayerRendererCache> mRendererCache;
345 #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.
QgsMesh3dDataBlock is a block of 3d stacked mesh data related N faces defined on base mesh frame...
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.
Abstract class to interpolate 3d stacked mesh data to 2d data.
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.