QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
3 More...
#include <qgsflatterraingenerator.h>
Public Member Functions | |
QgsFlatTerrainGenerator ()=default | |
QgsTerrainGenerator * | clone () const override SIP_FACTORY |
Makes a copy of the current instance. | |
QgsChunkLoader * | createChunkLoader (QgsChunkNode *node) const override SIP_FACTORY |
QgsCoordinateReferenceSystem | crs () const override |
Returns CRS of the terrain. | |
void | readXml (const QDomElement &elem) override |
Read terrain generator's configuration from XML. | |
QgsRectangle | rootChunkExtent () const override |
extent of the terrain's root chunk in terrain's CRS | |
void | rootChunkHeightRange (float &hMin, float &hMax) const override |
Returns height range of the root chunk in world coordinates. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets CRS of the terrain. | |
void | setExtent (const QgsRectangle &extent) override |
sets the extent of the terrain in terrain's CRS | |
Type | type () const override |
What texture generator implementation is this. | |
void | writeXml (QDomElement &elem) const override |
Write terrain generator's configuration to XML. | |
Public Member Functions inherited from QgsTerrainGenerator | |
virtual QgsRectangle | extent () const |
extent of the terrain in terrain's CRS, might be non-square and smaller than rootChunkExtent() | |
virtual float | heightAt (double x, double y, const Qgs3DRenderContext &context) const |
Returns height at (x,y) in map's CRS. | |
bool | isValid () const |
Returns whether the terrain generator is valid. | |
virtual void | resolveReferences (const QgsProject &project) |
After read of XML, resolve references to any layers that have been read as layer IDs. | |
virtual QgsBox3D | rootChunkBox3D (const Qgs3DMapSettings &map) const |
Returns 3D box (in map coordinates) of the root chunk. | |
virtual float | rootChunkError (const Qgs3DMapSettings &map) const |
Returns error of the root chunk in world coordinates. | |
virtual void | setTerrain (QgsTerrainEntity *t) |
Sets terrain entity for the generator (does not transfer ownership) | |
const QgsTilingScheme & | tilingScheme () const |
Returns tiling scheme of the terrain. | |
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) | |
Static Public Member Functions inherited from QgsTerrainGenerator | |
static QString | typeToString (Type type) |
Converts terrain generator type enumeration into a string. | |
Protected Attributes inherited from QgsTerrainGenerator | |
QgsRectangle | mExtent |
bool | mIsValid = true |
QgsTerrainEntity * | mTerrain = nullptr |
QgsTilingScheme | mTerrainTilingScheme |
Tiling scheme of the terrain. | |
3
Terrain generator that creates a simple square flat area.
Definition at line 51 of file qgsflatterraingenerator.h.
|
default |
|
overridevirtual |
Makes a copy of the current instance.
Implements QgsTerrainGenerator.
Definition at line 99 of file qgsflatterraingenerator.cpp.
|
override |
Definition at line 94 of file qgsflatterraingenerator.cpp.
|
inlineoverridevirtual |
Returns CRS of the terrain.
Reimplemented from QgsTerrainGenerator.
Definition at line 71 of file qgsflatterraingenerator.h.
|
overridevirtual |
Read terrain generator's configuration from XML.
Implements QgsTerrainGenerator.
Definition at line 129 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
extent of the terrain's root chunk in terrain's CRS
Implements QgsTerrainGenerator.
Definition at line 113 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
Returns height range of the root chunk in world coordinates.
Reimplemented from QgsTerrainGenerator.
Definition at line 118 of file qgsflatterraingenerator.cpp.
void QgsFlatTerrainGenerator::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets CRS of the terrain.
Definition at line 134 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
sets the extent of the terrain in terrain's CRS
Reimplemented from QgsTerrainGenerator.
Definition at line 140 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
What texture generator implementation is this.
Implements QgsTerrainGenerator.
Definition at line 108 of file qgsflatterraingenerator.cpp.
|
overridevirtual |
Write terrain generator's configuration to XML.
Implements QgsTerrainGenerator.
Definition at line 124 of file qgsflatterraingenerator.cpp.