16#ifndef QGSONLINETERRAINGENERATOR_H
17#define QGSONLINETERRAINGENERATOR_H
25class 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();
84 float mSkirtHeight = 10.f;
86 std::
unique_ptr<QgsDemHeightMapGenerator> mHeightMapGenerator;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
~QgsOnlineTerrainGenerator() override
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...
QgsOnlineTerrainGenerator()
Constructor for QgsOnlineTerrainGenerator.
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)
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 ...
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
A rectangle specified with double values.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
const QgsCoordinateReferenceSystem & crs