QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
3 More...
#include <qgs3drendercontext.h>
Public Member Functions | |
Qgs3DRenderContext ()=default | |
QgsCoordinateReferenceSystem | crs () const |
Returns the coordinate reference system used in the 3D scene. | |
QgsExpressionContext & | expressionContext () |
Gets the expression context. | |
const QgsExpressionContext & | expressionContext () const |
Gets the expression context (const version). | |
QgsRectangle | extent () const |
Returns the 3D scene's 2D extent in the 3D scene's CRS. | |
float | fieldOfView () const |
Returns the camera lens' field of view. | |
QgsVector3D | mapToWorldCoordinates (const QgsVector3D &mapCoords) const |
Converts map coordinates to 3D world coordinates (applies offset and turns (x,y,z) into (x,-z,y)). | |
QgsVector3D | origin () const |
Returns coordinates in map CRS at which 3D scene has origin (0,0,0) | |
double | outputDpi () const |
Returns DPI used for conversion between real world units (e.g. | |
QColor | selectionColor () const |
Returns color used for selected features. | |
void | setExpressionContext (const QgsExpressionContext &context) |
Sets the expression context. | |
const QgsDateTimeRange & | temporalRange () const |
Returns the temporal range for the map. | |
QgsTerrainGenerator * | terrainGenerator () const |
Returns the terrain generator. | |
bool | terrainRenderingEnabled () const |
Returns whether the 2D terrain surface will be rendered. | |
double | terrainVerticalScale () const |
Returns vertical scale (exaggeration) of terrain. | |
QgsCoordinateTransformContext | transformContext () const |
Returns the coordinate transform context, which stores various information regarding which datum transforms should be used when transforming points from a source to destination coordinate reference system. | |
QgsVector3D | worldToMapCoordinates (const QgsVector3D &worldCoords) const |
Converts 3D world coordinates to map coordinates (applies offset and turns (x,y,z) into (x,-z,y)). | |
Static Public Member Functions | |
static Qgs3DRenderContext | fromMapSettings (const Qgs3DMapSettings *mapSettings) |
Creates an initialized Qgs3DRenderContext instance from given Qgs3DMapSettings. | |
3
Rendering context for preparation of 3D entities.
Contains a snapshot of properties from Qgs3DMapSettings, in a thread-safe, cheap-to-copy structure.
Definition at line 46 of file qgs3drendercontext.h.
|
default |
|
inline |
Returns the coordinate reference system used in the 3D scene.
Definition at line 61 of file qgs3drendercontext.h.
|
inline |
Gets the expression context.
This context should be used for all expression evaluation associated with this render context.
Definition at line 144 of file qgs3drendercontext.h.
|
inline |
Gets the expression context (const version).
This context should be used for all expression evaluation associated with this render context.
Definition at line 152 of file qgs3drendercontext.h.
|
inline |
Returns the 3D scene's 2D extent in the 3D scene's CRS.
Definition at line 75 of file qgs3drendercontext.h.
|
inline |
Returns the camera lens' field of view.
Definition at line 101 of file qgs3drendercontext.h.
|
static |
Creates an initialized Qgs3DRenderContext instance from given Qgs3DMapSettings.
Definition at line 20 of file qgs3drendercontext.cpp.
QgsVector3D Qgs3DRenderContext::mapToWorldCoordinates | ( | const QgsVector3D & | mapCoords | ) | const |
Converts map coordinates to 3D world coordinates (applies offset and turns (x,y,z) into (x,-z,y)).
Definition at line 39 of file qgs3drendercontext.cpp.
|
inline |
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
Definition at line 80 of file qgs3drendercontext.h.
|
inline |
Returns DPI used for conversion between real world units (e.g.
mm) and pixels Default value is 96
Definition at line 96 of file qgs3drendercontext.h.
|
inline |
Returns color used for selected features.
Definition at line 90 of file qgs3drendercontext.h.
|
inline |
Sets the expression context.
This context is used for all expression evaluation associated with this render context.
Definition at line 137 of file qgs3drendercontext.h.
|
inline |
Returns the temporal range for the map.
Definition at line 85 of file qgs3drendercontext.h.
|
inline |
Returns the terrain generator.
Definition at line 130 of file qgs3drendercontext.h.
|
inline |
Returns whether the 2D terrain surface will be rendered.
Definition at line 120 of file qgs3drendercontext.h.
|
inline |
Returns vertical scale (exaggeration) of terrain.
Definition at line 125 of file qgs3drendercontext.h.
|
inline |
Returns the coordinate transform context, which stores various information regarding which datum transforms should be used when transforming points from a source to destination coordinate reference system.
Definition at line 68 of file qgs3drendercontext.h.
QgsVector3D Qgs3DRenderContext::worldToMapCoordinates | ( | const QgsVector3D & | worldCoords | ) | const |
Converts 3D world coordinates to map coordinates (applies offset and turns (x,y,z) into (x,-z,y)).
Definition at line 44 of file qgs3drendercontext.cpp.