16#ifndef QGSONLINETERRAINGENERATOR_H
17#define QGSONLINETERRAINGENERATOR_H
25class QgsDemHeightMapGenerator;
50 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
63 Type type() const override;
66 float heightAt(
double x,
double y, const
Qgs3DRenderContext &context ) const override;
67 void writeXml( QDomElement &elem ) const override;
68 void readXml( const QDomElement &elem ) override;
71 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
75 void updateGenerator();
83 float mSkirtHeight = 10.f;
85 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()
QgsCoordinateReferenceSystem crs() const override
Returns CRS of the terrain.
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 ...
A rectangle specified with double values.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
const QgsCoordinateReferenceSystem & crs