QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSTERRAINGENERATOR_H
17 #define QGSTERRAINGENERATOR_H
27 class QgsTerrainEntity;
67 virtual Type type()
const = 0;
79 virtual void rootChunkHeightRange(
float &hMin,
float &hMax )
const;
82 virtual float heightAt(
double x,
double y,
const Qgs3DMapSettings &map )
const;
85 virtual void writeXml( QDomElement &elem )
const = 0;
88 virtual void readXml(
const QDomElement &elem ) = 0;
94 static QString typeToString( Type type );
103 bool isValid()
const;
107 QgsTerrainEntity *mTerrain =
nullptr;
109 bool mIsValid =
true;
113 #endif // QGSTERRAINGENERATOR_H
@ Dem
Terrain is built from raster layer with digital elevation model.
virtual void resolveReferences(const QgsProject &project)
After read of XML, resolve references to any layers that have been read as layer IDs.
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
QgsTilingScheme mTerrainTilingScheme
Tiling scheme of the terrain.
@ Flat
The whole terrain is flat area.
Type
Enumeration of the available terrain generators.
@ Online
Terrain is built from downloaded tiles with digital elevation model.
const QgsTilingScheme & tilingScheme() const
Returns tiling scheme of the terrain.
void setTerrain(QgsTerrainEntity *t)
Sets terrain entity for the generator (does not transfer ownership)