QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgsonlineterraingenerator.h>
Public Member Functions | |
QgsOnlineTerrainGenerator () | |
Constructor for QgsOnlineTerrainGenerator. More... | |
~QgsOnlineTerrainGenerator () override | |
QgsTerrainGenerator * | clone () const override SIP_FACTORY |
Makes a copy of the current instance. More... | |
QgsChunkLoader * | createChunkLoader (QgsChunkNode *node) const override SIP_FACTORY |
QgsCoordinateReferenceSystem | crs () const |
Returns CRS of the terrain. More... | |
QgsRectangle | extent () const override |
extent of the terrain in terrain's CRS More... | |
float | heightAt (double x, double y, const Qgs3DMapSettings &map) const override |
Returns height at (x,y) in terrain's CRS. More... | |
QgsDemHeightMapGenerator * | heightMapGenerator () |
Returns height map generator object - takes care of extraction of elevations from the layer) More... | |
void | readXml (const QDomElement &elem) override |
Read terrain generator's configuration from XML. More... | |
int | resolution () const |
Returns resolution of the generator (how many elevation samples on one side of a terrain tile) More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) |
Sets CRS of the terrain. More... | |
void | setExtent (const QgsRectangle &extent) override |
sets the extent of the terrain in terrain's CRS More... | |
void | setResolution (int resolution) |
Sets resolution of the generator (how many elevation samples on one side of a terrain tile) More... | |
void | setSkirtHeight (float skirtHeight) |
Sets skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adjacent tiles. More... | |
float | skirtHeight () const |
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adjacent tiles. More... | |
Type | type () const override |
What texture generator implementation is this. More... | |
void | writeXml (QDomElement &elem) const override |
Write terrain generator's configuration to XML. More... | |
Public Member Functions inherited from QgsTerrainGenerator | |
virtual QgsTerrainGenerator * | clone () const =0SIP_FACTORY |
Makes a copy of the current instance. More... | |
QgsCoordinateReferenceSystem | crs () const |
Returns CRS of the terrain. More... | |
virtual QgsRectangle | extent () const =0 |
extent of the terrain in terrain's CRS More... | |
virtual float | heightAt (double x, double y, const Qgs3DMapSettings &map) const |
Returns height at (x,y) in terrain's CRS. More... | |
bool | isValid () const |
Returns whether the terrain generator is valid. More... | |
virtual void | readXml (const QDomElement &elem)=0 |
Read terrain generator's configuration from XML. More... | |
virtual void | resolveReferences (const QgsProject &project) |
After read of XML, resolve references to any layers that have been read as layer IDs. More... | |
virtual QgsAABB | rootChunkBbox (const Qgs3DMapSettings &map) const |
Returns bounding box of the root chunk. More... | |
virtual float | rootChunkError (const Qgs3DMapSettings &map) const |
Returns error of the root chunk in world coordinates. More... | |
virtual void | rootChunkHeightRange (float &hMin, float &hMax) const |
Returns height range of the root chunk in world coordinates. More... | |
virtual void | setExtent (const QgsRectangle &extent) |
sets the extent of the terrain in terrain's CRS More... | |
void | setTerrain (QgsTerrainEntity *t) |
Sets terrain entity for the generator (does not transfer ownership) More... | |
const QgsTilingScheme & | tilingScheme () const |
Returns tiling scheme of the terrain. More... | |
virtual Type | type () const =0 |
What texture generator implementation is this. More... | |
virtual void | writeXml (QDomElement &elem) const =0 |
Write terrain generator's configuration to XML. More... | |
Additional Inherited Members | |
Public Types inherited from QgsTerrainGenerator | |
enum | Type { Flat , Dem , Online , Mesh } |
Enumeration of the available terrain generators. More... | |
Signals inherited from QgsTerrainGenerator | |
void | extentChanged () |
Emitted when the terrain extent has changed. More... | |
void | terrainChanged () |
Emitted when the terrain changed (for example, raster DEM or mesh have data changed) More... | |
Static Public Member Functions inherited from QgsTerrainGenerator | |
static QString | typeToString (Type type) |
Converts terrain generator type enumeration into a string. More... | |
Protected Attributes inherited from QgsTerrainGenerator | |
bool | mIsValid = true |
QgsTerrainEntity * | mTerrain = nullptr |
QgsTilingScheme | mTerrainTilingScheme |
Tiling scheme of the terrain. More... | |
3
Implementation of terrain generator that uses online resources to download heightmaps.
Definition at line 37 of file qgsonlineterraingenerator.h.
|
default |
Constructor for QgsOnlineTerrainGenerator.
|
overridedefault |
|
overridevirtual |
Makes a copy of the current instance.
Implements QgsTerrainGenerator.
Definition at line 30 of file qgsonlineterraingenerator.cpp.
|
override |
Definition at line 25 of file qgsonlineterraingenerator.cpp.
|
inline |
Returns CRS of the terrain.
Definition at line 48 of file qgsonlineterraingenerator.h.
|
overridevirtual |
extent of the terrain in terrain's CRS
Implements QgsTerrainGenerator.
Definition at line 47 of file qgsonlineterraingenerator.cpp.
|
overridevirtual |
Returns height at (x,y) in terrain's CRS.
Reimplemented from QgsTerrainGenerator.
Definition at line 52 of file qgsonlineterraingenerator.cpp.
|
inline |
Returns height map generator object - takes care of extraction of elevations from the layer)
Definition at line 61 of file qgsonlineterraingenerator.h.
|
overridevirtual |
Read terrain generator's configuration from XML.
Implements QgsTerrainGenerator.
Definition at line 77 of file qgsonlineterraingenerator.cpp.
|
inline |
Returns resolution of the generator (how many elevation samples on one side of a terrain tile)
Definition at line 53 of file qgsonlineterraingenerator.h.
void QgsOnlineTerrainGenerator::setCrs | ( | const QgsCoordinateReferenceSystem & | crs, |
const QgsCoordinateTransformContext & | context | ||
) |
Sets CRS of the terrain.
Definition at line 93 of file qgsonlineterraingenerator.cpp.
|
overridevirtual |
sets the extent of the terrain in terrain's CRS
Reimplemented from QgsTerrainGenerator.
Definition at line 100 of file qgsonlineterraingenerator.cpp.
|
inline |
Sets resolution of the generator (how many elevation samples on one side of a terrain tile)
Definition at line 51 of file qgsonlineterraingenerator.h.
|
inline |
Sets skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adjacent tiles.
Definition at line 56 of file qgsonlineterraingenerator.h.
|
inline |
Returns skirt height (in world units). Skirts at the edges of terrain tiles help hide cracks between adjacent tiles.
Definition at line 58 of file qgsonlineterraingenerator.h.
|
overridevirtual |
What texture generator implementation is this.
Implements QgsTerrainGenerator.
Definition at line 42 of file qgsonlineterraingenerator.cpp.
|
overridevirtual |
Write terrain generator's configuration to XML.
Implements QgsTerrainGenerator.
Definition at line 61 of file qgsonlineterraingenerator.cpp.