16#ifndef QGSONLINETERRAINGENERATOR_H
17#define QGSONLINETERRAINGENERATOR_H
25class QgsDemHeightMapGenerator;
55 mResolution = resolution;
70 Type type() const override;
73 float heightAt(
double x,
double y, const
Qgs3DRenderContext &context ) const override;
75 QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override
SIP_FACTORY;
78 void updateGenerator();
86 float mSkirtHeight = 10.f;
88 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.
virtual void setCrs(const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context)
Sets the CRS associated with the terrain.
const QgsCoordinateReferenceSystem & crs