QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSFLATTERRAINGENERATOR_H
17 #define QGSFLATTERRAINGENERATOR_H
24 #include <Qt3DExtras/QPlaneGeometry>
31 class FlatTerrainChunkLoader :
public QgsTerrainTileLoader
37 FlatTerrainChunkLoader( QgsTerrainEntity *terrain, QgsChunkNode *mNode );
39 Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
42 Qt3DExtras::QPlaneGeometry *mTileGeometry =
nullptr;
60 QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override SIP_FACTORY;
67 void writeXml( QDomElement &elem )
const override;
68 void readXml(
const QDomElement &elem )
override;
77 void updateTilingScheme();
86 #endif // QGSFLATTERRAINGENERATOR_H
virtual void writeXml(QDomElement &elem) const =0
Write terrain generator's configuration to XML.
virtual void readXml(const QDomElement &elem)=0
Read terrain generator's configuration from XML.
virtual Type type() const =0
What texture generator implementation is this.
const QgsCoordinateReferenceSystem & crs
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
A rectangle specified with double values.
virtual void rootChunkHeightRange(float &hMin, float &hMax) const
Returns height range of the root chunk in world coordinates.
Base class for generators of terrain.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
Type
Enumeration of the available terrain generators.
Terrain generator that creates a simple square flat area.
This class represents a coordinate reference system (CRS).
virtual void setExtent(const QgsRectangle &extent)
sets the extent of the terrain in terrain's CRS
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS