QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
66 return QStringLiteral(
"mesh" );
68 return QStringLiteral(
"flat" );
70 return QStringLiteral(
"dem" );
72 return QStringLiteral(
"online" );
QgsCoordinateReferenceSystem crs() const
Returns coordinate reference system used in the 3D scene.
@ Dem
Terrain is built from raster layer with digital elevation model.
QgsCoordinateReferenceSystem crs() const
Returns CRS of the terrain.
virtual Type type() const =0
What texture generator implementation is this.
double y() const
Returns Y coordinate.
int mapTileResolution() const
Returns resolution (in pixels) of the texture of a terrain tile.
double yMinimum() const SIP_HOLDGIL
Returns the y minimum value (bottom side of rectangle).
QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which stores various information regarding which datum tran...
A rectangle specified with double values.
double xMaximum() const SIP_HOLDGIL
Returns the x maximum value (right side of rectangle).
virtual void rootChunkHeightRange(float &hMin, float &hMax) const
Returns height range of the root chunk in world coordinates.
virtual float heightAt(double x, double y, const Qgs3DMapSettings &map) const
Returns height at (x,y) in terrain's CRS.
@ Flat
The whole terrain is flat area.
static QString typeToString(Type type)
Converts terrain generator type enumeration into a string.
bool isValid() const
Returns whether the terrain generator is valid.
Axis-aligned bounding box - in world coords.
Type
Enumeration of the available terrain generators.
double xMinimum() const SIP_HOLDGIL
Returns the x minimum value (left side of rectangle).
QgsVector3D origin() const
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
virtual float rootChunkError(const Qgs3DMapSettings &map) const
Returns error of the root chunk in world coordinates.
double yMaximum() const SIP_HOLDGIL
Returns the y maximum value (top side of rectangle).
@ Online
Terrain is built from downloaded tiles with digital elevation model.
double width() const SIP_HOLDGIL
Returns the width of the rectangle.
virtual QgsRectangle extent() const =0
extent of the terrain in terrain's CRS
virtual QgsAABB rootChunkBbox(const Qgs3DMapSettings &map) const
Returns bounding box of the root chunk.
double x() const
Returns X coordinate.
@ Mesh
Terrain is built from mesh layer with z value on vertices.
double terrainVerticalScale() const
Returns vertical scale (exaggeration) of terrain.