QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSDEMTERRAINGENERATOR_H
17 #define QGSDEMTERRAINGENERATOR_H
27 class QgsDemHeightMapGenerator;
59 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
72 Type type() const override;
74 float heightAt(
double x,
double y, const
Qgs3DMapSettings &map ) const override;
75 void writeXml( QDomElement &elem ) const override;
76 void readXml( const QDomElement &elem ) override;
77 void resolveReferences( const
QgsProject &project ) override;
79 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
82 void updateGenerator();
84 QgsDemHeightMapGenerator *mHeightMapGenerator =
nullptr;
95 float mSkirtHeight = 10.f;
99 #endif // QGSDEMTERRAINGENERATOR_H
Contains information about the context in which a coordinate transform is executed.
void setResolution(int resolution)
Sets resolution of the generator (how many elevation samples on one side of a terrain tile)
float skirtHeight() const
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between ...
const QgsCoordinateReferenceSystem & crs
A rectangle specified with double values.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QgsDemHeightMapGenerator * heightMapGenerator()
Returns height map generator object - takes care of extraction of elevations from the layer)
Base class for generators of terrain.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
Represents a raster layer.
This class represents a coordinate reference system (CRS).
Implementation of terrain generator that uses a raster layer with DEM to build terrain.
void setSkirtHeight(float skirtHeight)
Sets skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adj...
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)