16 #ifndef QGSONLINETERRAINGENERATOR_H 17 #define QGSONLINETERRAINGENERATOR_H 25 class QgsDemHeightMapGenerator;
48 void setResolution(
int resolution ) { mResolution = resolution; updateGenerator(); }
64 void writeXml( QDomElement &elem )
const override;
65 void readXml(
const QDomElement &elem )
override;
68 QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override SIP_FACTORY;
72 void updateGenerator();
81 float mSkirtHeight = 10.f;
83 std::unique_ptr<QgsDemHeightMapGenerator> mHeightMapGenerator;
86 #endif // QGSONLINETERRAINGENERATOR_H A rectangle specified with double values.
virtual float heightAt(double x, double y, const Qgs3DMapSettings &map) const
Returns height at (x,y) in terrain's CRS.
QgsDemHeightMapGenerator * heightMapGenerator()
Returns height map generator object - takes care of extraction of elevations from the layer) ...
3 Implementation of terrain generator that uses online resources to download heightmaps.
virtual Type type() const =0
What texture generator implementation is this.
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
const QgsCoordinateReferenceSystem & crs
float skirtHeight() const
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between ...
3 Definition of the world
virtual void readXml(const QDomElement &elem)=0
Read terrain generator's configuration from XML.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
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) ...
Contains information about the context in which a coordinate transform is executed.
Type
Enumeration of the available terrain generators.
int resolution() const
Returns resolution of the generator (how many elevation samples on one side of a terrain tile) ...
3 Base class for generators of terrain.
virtual void writeXml(QDomElement &elem) const =0
Write terrain generator's configuration to XML.
This class represents a coordinate reference system (CRS).
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS