| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Terrain generator using a Quantized Mesh tile layer. More...
#include <qgsquantizedmeshterraingenerator.h>

Public Member Functions | |
| QgsQuantizedMeshTerrainGenerator () | |
| virtual QgsTerrainGenerator * | clone () const override | 
| Makes a copy of the current instance.   | |
| virtual QVector< QgsChunkNode * > | createChildren (QgsChunkNode *node) const override | 
| virtual QgsChunkLoader * | createChunkLoader (QgsChunkNode *node) const override | 
| virtual QgsChunkNode * | createRootNode () const override | 
| virtual float | heightAt (double x, double y, const Qgs3DRenderContext &context) const override | 
| Returns height at (x,y) in map's CRS.   | |
| QgsTiledSceneLayer * | layer () const | 
| Returns the layer we take tiles from.   | |
| virtual float | rootChunkError (const Qgs3DMapSettings &map) const override | 
| Returns error of the root chunk in world coordinates.   | |
| virtual QgsRectangle | rootChunkExtent () const override | 
| extent of the terrain's root chunk in terrain's CRS   | |
| virtual void | rootChunkHeightRange (float &hMin, float &hMax) const override | 
| Returns height range of the root chunk in world coordinates.   | |
| virtual void | setExtent (const QgsRectangle &extent) override | 
| sets the extent of the terrain in terrain's CRS   | |
| bool | setLayer (QgsTiledSceneLayer *layer) | 
| Set layer to take tiles from.   | |
| virtual void | setTerrain (QgsTerrainEntity *t) override | 
| Sets terrain entity for the generator (does not transfer ownership)   | |
| virtual QgsTerrainGenerator::Type | type () const override | 
| What texture generator implementation is this.   | |
  Public Member Functions inherited from QgsTerrainGenerator | |
| virtual QgsCoordinateReferenceSystem | crs () const | 
| Returns CRS of the terrain.   | |
| bool | isValid () const | 
| Returns whether the terrain generator is valid.   | |
| virtual QgsBox3D | rootChunkBox3D (const Qgs3DMapSettings &map) const | 
| Returns 3D box (in map coordinates) of the root chunk.   | |
| virtual void | setCrs (const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) | 
| Sets the CRS associated with the terrain.   | |
| const QgsTilingScheme & | tilingScheme () const | 
| Returns tiling scheme of the terrain.   | |
Static Public Member Functions | |
| static QgsTerrainGenerator * | create () | 
| Creates a new instance of a QgsQuantizedMeshTerrainGenerator object.   | |
  Static Public Member Functions inherited from QgsTerrainGenerator | |
| static QString | typeToString (Type type) | 
| Converts terrain generator type enumeration into a string.   | |
Additional Inherited Members | |
  Public Types inherited from QgsTerrainGenerator | |
| enum | Type {  Flat , Dem , Online , Mesh , QuantizedMesh }  | 
| Enumeration of the available terrain generators.  More... | |
  Signals inherited from QgsTerrainGenerator | |
| void | terrainChanged () | 
| Emitted when the terrain changed (for example, raster DEM or mesh have data changed)   | |
  Protected Attributes inherited from QgsTerrainGenerator | |
| QgsRectangle | mExtent | 
| bool | mIsValid = true | 
| QgsTerrainEntity * | mTerrain = nullptr | 
| QgsTilingScheme | mTerrainTilingScheme | 
| Tiling scheme of the terrain.   | |
Terrain generator using a Quantized Mesh tile layer.
Definition at line 36 of file qgsquantizedmeshterraingenerator.h.
      
  | 
  inline | 
Definition at line 45 of file qgsquantizedmeshterraingenerator.h.
      
  | 
  overridevirtual | 
Makes a copy of the current instance.
Implements QgsTerrainGenerator.
Definition at line 225 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  static | 
Creates a new instance of a QgsQuantizedMeshTerrainGenerator object.
Definition at line 210 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Definition at line 307 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Definition at line 292 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Definition at line 298 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Returns height at (x,y) in map's CRS.
Reimplemented from QgsTerrainGenerator.
Definition at line 261 of file qgsquantizedmeshterraingenerator.cpp.
| QgsTiledSceneLayer * QgsQuantizedMeshTerrainGenerator::layer | ( | ) | const | 
Returns the layer we take tiles from.
Definition at line 367 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Returns error of the root chunk in world coordinates.
Reimplemented from QgsTerrainGenerator.
Definition at line 250 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
extent of the terrain's root chunk in terrain's CRS
Implements QgsTerrainGenerator.
Definition at line 245 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Returns height range of the root chunk in world coordinates.
Reimplemented from QgsTerrainGenerator.
Definition at line 256 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
sets the extent of the terrain in terrain's CRS
Reimplemented from QgsTerrainGenerator.
Definition at line 240 of file qgsquantizedmeshterraingenerator.cpp.
| bool QgsQuantizedMeshTerrainGenerator::setLayer | ( | QgsTiledSceneLayer * | layer | ) | 
Set layer to take tiles from.
Definition at line 343 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
Sets terrain entity for the generator (does not transfer ownership)
Reimplemented from QgsTerrainGenerator.
Definition at line 215 of file qgsquantizedmeshterraingenerator.cpp.
      
  | 
  overridevirtual | 
What texture generator implementation is this.
Implements QgsTerrainGenerator.
Definition at line 235 of file qgsquantizedmeshterraingenerator.cpp.