QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
3 Terrain generator that creates a simple square flat area. More...
#include <qgsflatterraingenerator.h>
Public Member Functions | |
QgsFlatTerrainGenerator ()=default | |
Creates flat terrain generator object. More... | |
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... | |
void | readXml (const QDomElement &elem) override |
Read terrain generator's configuration from XML. More... | |
void | rootChunkHeightRange (float &hMin, float &hMax) const override |
Returns height range of the root chunk in world coordinates. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets CRS of the terrain. More... | |
void | setExtent (const QgsRectangle &extent) |
Sets extent of the terrain. 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 | |
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... | |
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... | |
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... | |
3 Terrain generator that creates a simple square flat area.
Definition at line 51 of file qgsflatterraingenerator.h.
|
default |
Creates flat terrain generator object.
|
overridevirtual |
Makes a copy of the current instance.
Implements QgsTerrainGenerator.
Definition at line 85 of file qgsflatterraingenerator.cpp.
|
override |
Definition at line 80 of file qgsflatterraingenerator.cpp.
|
inline |
Returns CRS of the terrain.
Definition at line 72 of file qgsflatterraingenerator.h.
|
overridevirtual |
extent of the terrain in terrain's CRS
Implements QgsTerrainGenerator.
Definition at line 99 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
Read terrain generator's configuration from XML.
Implements QgsTerrainGenerator.
Definition at line 122 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
Returns height range of the root chunk in world coordinates.
Reimplemented from QgsTerrainGenerator.
Definition at line 104 of file qgsflatterraingenerator.cpp.
void QgsFlatTerrainGenerator::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets CRS of the terrain.
Definition at line 135 of file qgsflatterraingenerator.cpp.
void QgsFlatTerrainGenerator::setExtent | ( | const QgsRectangle & | extent | ) |
Sets extent of the terrain.
Definition at line 141 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
What texture generator implementation is this.
Implements QgsTerrainGenerator.
Definition at line 94 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
Write terrain generator's configuration to XML.
Implements QgsTerrainGenerator.
Definition at line 110 of file qgsflatterraingenerator.cpp.