QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSTERRAINGENERATOR_H
17 #define QGSTERRAINGENERATOR_H
27 class QgsTerrainEntity;
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
virtual void writeXml(QDomElement &elem) const =0
Write terrain generator's configuration to XML.
virtual void readXml(const QDomElement &elem)=0
Read terrain generator's configuration from XML.
@ 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.
virtual Type type() const =0
What texture generator implementation is this.
A rectangle specified with double values.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QgsTilingScheme mTerrainTilingScheme
Tiling scheme of the terrain.
3 Base class for generators of terrain.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
@ Flat
The whole terrain is flat area.
3 Axis-aligned bounding box - in world coords.
Type
Enumeration of the available terrain generators.
3 Definition of the world
This class represents a coordinate reference system (CRS).
@ Online
Terrain is built from downloaded tiles with digital elevation model.
3 The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS
const QgsTilingScheme & tilingScheme() const
Returns tiling scheme of the terrain.
void setTerrain(QgsTerrainEntity *t)
Sets terrain entity for the generator (does not transfer ownership)