QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
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;
59 QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override SIP_FACTORY;
65 void writeXml( QDomElement &elem )
const override;
66 void readXml(
const QDomElement &elem )
override;
78 void updateTilingScheme();
87 #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.
virtual void rootChunkHeightRange(float &hMin, float &hMax) const
Returns height range of the root chunk in world coordinates.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.
Type
Enumeration of the available terrain generators.
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS