16#ifndef QGSFLATTERRAINGENERATOR_H
17#define QGSFLATTERRAINGENERATOR_H
23#include <Qt3DExtras/QPlaneGeometry>
30class FlatTerrainChunkLoader :
public QgsTerrainTileLoader
36 FlatTerrainChunkLoader( QgsTerrainEntity *terrain, QgsChunkNode *mNode );
38 void start()
override;
40 Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
43 Qt3DExtras::QPlaneGeometry *mTileGeometry =
nullptr;
77 void updateTilingScheme();
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Type type() const override
What texture generator implementation is this.
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.
static QgsTerrainGenerator * create()
Creates a new instance of a QgsFlatTerrainGenerator object.
QgsChunkLoader * createChunkLoader(QgsChunkNode *node) const override
QgsFlatTerrainGenerator()=default
void setExtent(const QgsRectangle &extent) override
sets the extent of the terrain in terrain's CRS
QgsCoordinateReferenceSystem crs() const override
Returns CRS of the terrain.
void setCrs(const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) override
Sets the CRS associated with the terrain.
A rectangle specified with double values.
Base class for generators of terrain.
Type
Enumeration of the available terrain generators.
virtual QgsTerrainGenerator * clone() const =0SIP_FACTORY
Makes a copy of the current instance.