QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSONLINETERRAINGENERATOR_H
17 #define QGSONLINETERRAINGENERATOR_H
25 class QgsDemHeightMapGenerator;
53 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
66 Type type() const override;
68 float heightAt(
double x,
double y, const
Qgs3DMapSettings &map ) const override;
69 void writeXml( QDomElement &elem ) const override;
70 void readXml( const QDomElement &elem ) override;
73 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
77 void updateGenerator();
86 float mSkirtHeight = 10.f;
88 std::
unique_ptr<QgsDemHeightMapGenerator> mHeightMapGenerator;
91 #endif // QGSONLINETERRAINGENERATOR_H
const QgsCoordinateReferenceSystem & crs
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
QgsDemHeightMapGenerator * heightMapGenerator()
Returns height map generator object - takes care of extraction of elevations from the layer)
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)
float skirtHeight() const
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between ...