QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
3 More...
#include <quantizedmeshterraingenerator.h>
Public Member Functions | |
QuantizedMeshTerrainGenerator () | |
QgsChunkLoader * | createChunkLoader (QgsChunkNode *node) const override SIP_FACTORY |
QgsRectangle | extent () const override |
extent of the terrain in terrain's CRS More... | |
void | quadTreeTileToBaseTile (int x, int y, int z, int &tx, int &ty, int &tz) const |
Converts tile coordinates (x,y,z) in our quadtree to tile coordinates of quantized mesh tree. More... | |
void | readXml (const QDomElement &elem) override |
Read terrain generator's configuration from XML. More... | |
void | setBaseTileFromExtent (const QgsRectangle &extentInTerrainCrs) |
Determines base tile from map extent. More... | |
QgsTerrainGenerator::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 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 | 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... | |
Public Attributes | |
int | terrainBaseX |
int | terrainBaseY |
int | terrainBaseZ |
Coordinates of the base tile. 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
Terrain generator using downloaded terrain tiles using quantized mesh specification
Definition at line 26 of file quantizedmeshterraingenerator.h.
QuantizedMeshTerrainGenerator::QuantizedMeshTerrainGenerator | ( | ) |
Definition at line 113 of file quantizedmeshterraingenerator.cpp.
|
override |
Definition at line 158 of file quantizedmeshterraingenerator.cpp.
|
overridevirtual |
extent of the terrain in terrain's CRS
Implements QgsTerrainGenerator.
Definition at line 138 of file quantizedmeshterraingenerator.cpp.
void QuantizedMeshTerrainGenerator::quadTreeTileToBaseTile | ( | int | x, |
int | y, | ||
int | z, | ||
int & | tx, | ||
int & | ty, | ||
int & | tz | ||
) | const |
Converts tile coordinates (x,y,z) in our quadtree to tile coordinates of quantized mesh tree.
Definition at line 124 of file quantizedmeshterraingenerator.cpp.
|
overridevirtual |
Read terrain generator's configuration from XML.
Implements QgsTerrainGenerator.
Definition at line 150 of file quantizedmeshterraingenerator.cpp.
void QuantizedMeshTerrainGenerator::setBaseTileFromExtent | ( | const QgsRectangle & | extentInTerrainCrs | ) |
Determines base tile from map extent.
Definition at line 119 of file quantizedmeshterraingenerator.cpp.
|
overridevirtual |
What texture generator implementation is this.
Implements QgsTerrainGenerator.
Definition at line 133 of file quantizedmeshterraingenerator.cpp.
|
overridevirtual |
Write terrain generator's configuration to XML.
Implements QgsTerrainGenerator.
Definition at line 143 of file quantizedmeshterraingenerator.cpp.
int QuantizedMeshTerrainGenerator::terrainBaseX |
Definition at line 44 of file quantizedmeshterraingenerator.h.
int QuantizedMeshTerrainGenerator::terrainBaseY |
Definition at line 44 of file quantizedmeshterraingenerator.h.
int QuantizedMeshTerrainGenerator::terrainBaseZ |
Coordinates of the base tile.
Definition at line 44 of file quantizedmeshterraingenerator.h.