16 #ifndef QGSDEMTERRAINGENERATOR_H 17 #define QGSDEMTERRAINGENERATOR_H 27 class QgsDemHeightMapGenerator;
52 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
68 void writeXml( QDomElement &elem )
const override;
69 void readXml(
const QDomElement &elem )
override;
72 QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override SIP_FACTORY;
75 void updateGenerator();
77 QgsDemHeightMapGenerator *mHeightMapGenerator =
nullptr;
88 float mSkirtHeight = 10.f;
92 #endif // QGSDEMTERRAINGENERATOR_H virtual void resolveReferences(const QgsProject &project)
After read of XML, resolve references to any layers that have been read as layer IDs.
A rectangle specified with double values.
virtual float heightAt(double x, double y, const Qgs3DMapSettings &map) const
Returns height at (x,y) in terrain's CRS.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
virtual Type type() const =0
What texture generator implementation is this.
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile) ...
const QgsCoordinateReferenceSystem & crs
3 Definition of the world
virtual void readXml(const QDomElement &elem)=0
Read terrain generator's configuration from XML.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
void setSkirtHeight(float skirtHeight)
Sets skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adj...
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, annotations, canvases, etc.
Contains information about the context in which a coordinate transform is executed.
Type
Enumeration of the available terrain generators.
3 Base class for generators of terrain.
QgsDemHeightMapGenerator * heightMapGenerator()
Returns height map generator object - takes care of extraction of elevations from the layer) ...
3 Implementation of terrain generator that uses a raster layer with DEM to build terrain.
virtual void writeXml(QDomElement &elem) const =0
Write terrain generator's configuration to XML.
This class represents a coordinate reference system (CRS).
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS
void setResolution(int resolution)
Sets resolution of the generator (how many elevation samples on one side of a terrain tile) ...