26 te = terrainToMapTransform.transformBoundingBox( te );
38 te = terrainToMapTransform.transformBoundingBox( te );
64 return QStringLiteral(
"flat" );
66 return QStringLiteral(
"dem" );
68 return QStringLiteral(
"quantized-mesh" );
3 Axis-aligned bounding box - in world coords.
A rectangle specified with double values.
virtual float heightAt(double x, double y, const Qgs3DMapSettings &map) const
Returns height at (x,y) in terrain's CRS.
virtual Type type() const =0
What texture generator implementation is this.
3 Definition of the world
virtual void rootChunkHeightRange(float &hMin, float &hMax) const
Returns height range of the root chunk in world coordinates.
double x() const
Returns X coordinate.
Terrain is built from raster layer with digital elevation model.
QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which stores various information regarding which datum tran...
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
int mapTileResolution() const
Returns resolution (in pixels) of the texture of a terrain tile.
static QString typeToString(Type type)
Converts terrain generator type enumeration into a string.
double y() const
Returns Y coordinate.
Type
Enumeration of the available terrain generators.
virtual QgsAABB rootChunkBbox(const Qgs3DMapSettings &map) const
Returns bounding box of the root chunk.
QgsVector3D origin() const
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
QgsCoordinateReferenceSystem crs() const
Returns coordinate reference system used in the 3D scene.
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS
virtual float rootChunkError(const Qgs3DMapSettings &map) const
Returns error of the root chunk in world coordinates.
Terrain is built from downloaded tiles in quantized mesh format.
double width() const
Returns the width of the rectangle.
double terrainVerticalScale() const
Returns vertical scale (exaggeration) of terrain.
The whole terrain is flat area.