16#ifndef QGSDEMTERRAINSETTINGS_H
17#define QGSDEMTERRAINSETTINGS_H
44 QString
type()
const final;
100 int mResolution = 16;
102 double mSkirtHeight = 10.;
virtual void readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads settings from a DOM element.
virtual void resolveReferences(const QgsProject *project)
After reading settings from XML, resolves references to any layers in a project that have been read a...
virtual std::unique_ptr< QgsTerrainGenerator > createTerrainGenerator(const Qgs3DRenderContext &context) const =0
Creates a new instance of a terrain generator which matches the terrain settings.
virtual QgsAbstractTerrainSettings * clone() const =0
Returns a copy of the terrain settings.
virtual bool equals(const QgsAbstractTerrainSettings *other) const =0
Returns true if this settings is exactly equal to another other settings.
virtual QString type() const =0
Returns the unique type name for the terrain generator.
virtual void writeXml(QDomElement &element, const QgsReadWriteContext &context) const =0
Writes settings to a DOM element.
int resolution() const
Returns the resolution of the terrain (how many elevation samples are taken on one side of a terrain ...
void setSkirtHeight(double height)
Sets the skirt height (in world units).
void setResolution(int resolution)
Sets the resolution of the terrain (how many elevation samples are taken on one side of a terrain til...
double skirtHeight() const
Returns the skirt height (in world units).
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Represents a raster layer.
The class is used as a container of context for various read/write operations on other objects.