16 #ifndef QGSTERRAINGENERATOR_H 17 #define QGSTERRAINGENERATOR_H 27 class QgsTerrainEntity;
61 virtual Type type()
const = 0;
73 virtual void rootChunkHeightRange(
float &hMin,
float &hMax )
const;
76 virtual float heightAt(
double x,
double y,
const Qgs3DMapSettings &map )
const;
79 virtual void writeXml( QDomElement &elem )
const = 0;
82 virtual void readXml(
const QDomElement &elem ) = 0;
88 static QString typeToString(
Type type );
98 QgsTerrainEntity *mTerrain =
nullptr;
102 #endif // QGSTERRAINGENERATOR_H virtual void resolveReferences(const QgsProject &project)
After read of XML, resolve references to any layers that have been read as layer IDs.
3 Axis-aligned bounding box - in world coords.
A rectangle specified with double values.
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
3 Definition of the world
Terrain is built from raster layer with digital elevation model.
Reads and writes project states.
const QgsTilingScheme & tilingScheme() const
Returns tiling scheme of the terrain.
Type
Enumeration of the available terrain generators.
QgsTilingScheme mTerrainTilingScheme
Tiling scheme of the terrain.
3 Base class for generators of terrain.
This class represents a coordinate reference system (CRS).
void setTerrain(QgsTerrainEntity *t)
Sets terrain entity for the generator (does not transfer ownership)
Terrain is built from downloaded tiles with digital elevation model.
3 The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
The whole terrain is flat area.