16#ifndef QGSMESHTERRAINSETTINGS_H
17#define QGSMESHTERRAINSETTINGS_H
50 QString
type() const final;
89 std::unique_ptr<QgsMesh3DSymbol> mSymbol;
Rendering context for preparation of 3D entities.
Base class for all terrain settings classes.
virtual QgsAbstractTerrainSettings * clone() const =0
Returns a copy of the terrain settings.
3D symbol that draws mesh geometry as planar triangles.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
bool equals(const QgsAbstractTerrainSettings *other) const final
Returns true if this settings is exactly equal to another other settings.
void resolveReferences(const QgsProject *project) final
After reading settings from XML, resolves references to any layers in a project that have been read a...
void setSymbol(QgsMesh3DSymbol *symbol)
Sets the symbol used to render the mesh as terrain.
QString type() const final
Returns the unique type name for the terrain generator.
void readXml(const QDomElement &element, const QgsReadWriteContext &context) final
Reads settings from a DOM element.
QgsMeshLayer * layer() const
Returns the mesh layer with elevation model to be used for terrain generation.
QgsMesh3DSymbol * symbol() const
Returns the symbol used to render the mesh as terrain.
~QgsMeshTerrainSettings() override
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const final
Writes settings to a DOM element.
static QgsAbstractTerrainSettings * create()
Creates a new instance of a QgsMeshTerrainSettings object.
void setLayer(QgsMeshLayer *layer)
Sets the mesh layer with elevation model to be used for terrain generation.
std::unique_ptr< QgsTerrainGenerator > createTerrainGenerator(const Qgs3DRenderContext &context) const override
Creates a new instance of a terrain generator which matches the terrain settings.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A container for the context for various read/write operations on objects.
Base class for generators of terrain.
_LayerRef< QgsMapLayer > QgsMapLayerRef