QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | Public Attributes | List of all members
QuantizedMeshTerrainGenerator Class Reference

3 Terrain generator using downloaded terrain tiles using quantized mesh specification More...

#include <quantizedmeshterraingenerator.h>

Inheritance diagram for QuantizedMeshTerrainGenerator:
Inheritance graph
[legend]

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 QgsTerrainGeneratorclone () 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...
 
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...
 
void setTerrain (QgsTerrainEntity *t)
 Sets terrain entity for the generator (does not transfer ownership) More...
 
const QgsTilingSchemetilingScheme () 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, QuantizedMesh }
 Enumeration of the available terrain generators. 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
QgsTerrainEntity * mTerrain = nullptr
 
QgsTilingScheme mTerrainTilingScheme
 Tiling scheme of the terrain. More...
 

Detailed Description

3 Terrain generator using downloaded terrain tiles using quantized mesh specification

Since
QGIS 3.0

Definition at line 26 of file quantizedmeshterraingenerator.h.

Constructor & Destructor Documentation

◆ QuantizedMeshTerrainGenerator()

QuantizedMeshTerrainGenerator::QuantizedMeshTerrainGenerator ( )

Definition at line 113 of file quantizedmeshterraingenerator.cpp.

Member Function Documentation

◆ createChunkLoader()

ChunkLoader * QuantizedMeshTerrainGenerator::createChunkLoader ( QgsChunkNode *  node) const
override

Definition at line 158 of file quantizedmeshterraingenerator.cpp.

◆ extent()

QgsRectangle QuantizedMeshTerrainGenerator::extent ( ) const
overridevirtual

extent of the terrain in terrain's CRS

Implements QgsTerrainGenerator.

Definition at line 138 of file quantizedmeshterraingenerator.cpp.

◆ quadTreeTileToBaseTile()

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.

◆ readXml()

void QuantizedMeshTerrainGenerator::readXml ( const QDomElement &  elem)
overridevirtual

Read terrain generator's configuration from XML.

Implements QgsTerrainGenerator.

Definition at line 150 of file quantizedmeshterraingenerator.cpp.

◆ setBaseTileFromExtent()

void QuantizedMeshTerrainGenerator::setBaseTileFromExtent ( const QgsRectangle extentInTerrainCrs)

Determines base tile from map extent.

Definition at line 119 of file quantizedmeshterraingenerator.cpp.

◆ type()

TerrainGenerator::Type QuantizedMeshTerrainGenerator::type ( ) const
overridevirtual

What texture generator implementation is this.

Implements QgsTerrainGenerator.

Definition at line 133 of file quantizedmeshterraingenerator.cpp.

◆ writeXml()

void QuantizedMeshTerrainGenerator::writeXml ( QDomElement &  elem) const
overridevirtual

Write terrain generator's configuration to XML.

Implements QgsTerrainGenerator.

Definition at line 143 of file quantizedmeshterraingenerator.cpp.

Member Data Documentation

◆ terrainBaseX

int QuantizedMeshTerrainGenerator::terrainBaseX

Definition at line 44 of file quantizedmeshterraingenerator.h.

◆ terrainBaseY

int QuantizedMeshTerrainGenerator::terrainBaseY

Definition at line 44 of file quantizedmeshterraingenerator.h.

◆ terrainBaseZ

int QuantizedMeshTerrainGenerator::terrainBaseZ

Coordinates of the base tile.

Definition at line 44 of file quantizedmeshterraingenerator.h.


The documentation for this class was generated from the following files: