QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSTERRAINGENERATOR_H
17 #define QGSTERRAINGENERATOR_H
27 class QgsTerrainEntity;
70 virtual Type type()
const = 0;
85 virtual void rootChunkHeightRange(
float &hMin,
float &hMax )
const;
88 virtual float heightAt(
double x,
double y,
const Qgs3DMapSettings &map )
const;
91 virtual void writeXml( QDomElement &elem )
const = 0;
94 virtual void readXml(
const QDomElement &elem ) = 0;
100 static QString typeToString( Type type );
109 bool isValid()
const;
114 void extentChanged();
117 void terrainChanged();
122 QgsTerrainEntity *mTerrain =
nullptr;
124 bool mIsValid =
true;
129 #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.
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.
Base class for generators of terrain.
@ Flat
The whole terrain is flat area.
Axis-aligned bounding box - in world coords.
Type
Enumeration of the available terrain generators.
This class represents a coordinate reference system (CRS).
@ Online
Terrain is built from downloaded tiles with digital elevation model.
virtual void setExtent(const QgsRectangle &extent)
sets the extent of the terrain in terrain's CRS
The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
const QgsTilingScheme & tilingScheme() const
Returns tiling scheme of the terrain.
void setTerrain(QgsTerrainEntity *t)
Sets terrain entity for the generator (does not transfer ownership)