QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSONLINETERRAINGENERATOR_H
17 #define QGSONLINETERRAINGENERATOR_H
25 class QgsDemHeightMapGenerator;
51 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
64 Type type() const override;
67 float heightAt(
double x,
double y, const
Qgs3DMapSettings &map ) const override;
68 void writeXml( QDomElement &elem ) const override;
69 void readXml( const QDomElement &elem ) override;
72 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
76 void updateGenerator();
85 float mSkirtHeight = 10.f;
87 std::
unique_ptr<QgsDemHeightMapGenerator> mHeightMapGenerator;
90 #endif // QGSONLINETERRAINGENERATOR_H
Contains information about the context in which a coordinate transform is executed.
const QgsCoordinateReferenceSystem & crs
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)
A rectangle specified with double values.
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
Base class for generators of terrain.
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)
This class represents a coordinate reference system (CRS).
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)
Implementation of terrain generator that uses online resources to download heightmaps.
float skirtHeight() const
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between ...