16 #ifndef QGSDEMTERRAINGENERATOR_H
17 #define QGSDEMTERRAINGENERATOR_H
27 class QgsDemHeightMapGenerator;
57 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
70 Type type() const override;
72 float heightAt(
double x,
double y, const
Qgs3DMapSettings &map ) const override;
73 void writeXml( QDomElement &elem ) const override;
74 void readXml( const QDomElement &elem ) override;
75 void resolveReferences( const
QgsProject &project ) override;
77 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
80 void updateGenerator();
82 QgsDemHeightMapGenerator *mHeightMapGenerator =
nullptr;
93 float mSkirtHeight = 10.f;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
QgsDemHeightMapGenerator * heightMapGenerator()
Returns height map generator object - takes care of extraction of elevations from the layer)
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)
void setSkirtHeight(float skirtHeight)
Sets skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adj...
void setResolution(int resolution)
Sets resolution of the generator (how many elevation samples on one side of a terrain tile)
QgsDemTerrainGenerator()=default
Constructor for QgsDemTerrainGenerator.
float skirtHeight() const
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between ...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Represents a raster layer.
A rectangle specified with double values.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
const QgsCoordinateReferenceSystem & crs