Class: Qgs3DMapSettings¶
- class qgis.3d.Qgs3DMapSettings¶
Bases:
PyQt5.QtCore.QObject
,QgsTemporalRangeObject
Definition of the world.
New in version 3.0.
Qgs3DMapSettings() Constructor for Qgs3DMapSettings
Qgs3DMapSettings(other: Qgs3DMapSettings) Copy constructor
Methods
Returns background color of the 3D map view
Returns the camera movement speed
Returns coordinate reference system used in the 3D scene
Returns the corner where the shadow map preview is displayed
Returns whether the shadow map debugging is enabled
Returns the size of the shadow map preview
Returns the corner where the shadow map preview is displayed
Returns whether the shadow map debugging is enabled
Returns the size of the shadow map preview
Returns the eye dome lighting distance value (contributes to the contrast of the image)
Returns whether eye dome lighting is used
Returns the eye dome lighting strength value
Returns the camera lens' field of view
Returns whether debug overlay is enabled
Returns whether FPS counter label is enabled
Returns whether the skybox is enabled.
Returns whether terrain shading is enabled.
Returns the list of 3D map layers to be rendered in the scene.
Returns list of directional light sources defined in the scene.
Returns pointer to the collection of map themes.
Returns resolution (in pixels) of the texture of a terrain tile.
Converts map coordinates to 3D world coordinates (applies offset and turns (x,y,z) into (x,-z,y))
Returns maximum ground error of terrain tiles in world units.
Returns maximum allowed screen error of terrain tiles in pixels.
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
Returns DPI used for conversion between real world units (e.g.
Returns the path resolver for conversion between relative and absolute paths during rendering operations, e.g.
Reads configuration from a DOM element previously written by
writeXml()
Returns the renderer usage
Returns list of extra 3D renderers
Resolves references to other objects (map layers) after the call to
readXml()
Returns color used for selected features
Sets background color of the 3D map view
Sets the camera movement speed
Sets coordinate reference system used in the 3D scene
Sets the debugging settings of the depth map
Sets the debugging settings of the shadow map
Sets the eye dome lighting distance value (contributes to the contrast of the image
Sets whether eye dome lighting will be used
Sets the eye dome lighting strength value
Sets the camera lens' field of view
Sets whether debug overlay is enabled The debug overlay displays some debugging and profiling information.
Sets whether FPS counter label is enabled
Sets whether the skybox is enabled.
Sets the list of 3D map
layers
to be rendered in the scene.Sets the list of
light
sources defined in the scene.Sets pointer to the collection of map themes.
Sets resolution (in pixels) of the texture of a terrain tile
Returns maximum ground error of terrain tiles in world units.
Sets maximum allowed screen error of terrain tiles in pixels.
Sets coordinates in map CRS at which our 3D world has origin (0,0,0)
Sets DPI used for conversion between real world units (e.g.
Sets the path
resolver
for conversion between relative and absolute paths during rendering operations, e.g.Sets the renderer usage
Sets list of extra 3D renderers to use in the scene.
Sets color used for selected features
Sets whether to show camera's rotation center as a sphere (for debugging)
Sets whether to show camera's view center as a sphere (for debugging)
Sets whether to display labels on terrain tiles
Sets whether to show light source origins as a sphere (for debugging)
Sets whether to display bounding boxes of terrain tiles (for debugging)
Sets whether to display extra tile info on top of terrain tiles (for debugging)
Sets the terrain elevation offset (used to move the terrain up or down)
Sets name of the map theme.
Sets whether the 2D terrain surface will be rendered in.
Sets whether terrain shading is enabled.
Sets terrain shading material.
Sets vertical scale (exaggeration) of terrain (1 = true scale, > 1 = hills get more pronounced)
Sets 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.Sets whether the camera's view frustum is visualized on the 2D map canvas
Sets the view sync mode (used to synchronize the 2D main map canvas and the 3D camera navigation)
Returns whether to show camera's rotation center as a sphere (for debugging)
Returns whether to show camera's view center as a sphere (for debugging)
Returns whether to display labels on terrain tiles
Returns whether to show light source origins as a sphere (for debugging)
Returns whether to display bounding boxes of terrain tiles (for debugging)
Returns whether to display extra tile info on top of terrain tiles (for debugging)
Returns the elevation offset of the terrain (used to move the terrain up or down)
Returns name of the map theme (from the active project) that will be used for terrain's texture.
Returns whether the 2D terrain surface will be rendered.
Returns terrain shading material.
Returns vertical scale (exaggeration) of terrain
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.
Returns whether the camera's view frustum is visualized on the 2D map canvas
Returns the view sync mode (used to synchronize the 2D main map canvas and the 3D camera navigation)
Converts 3D world coordinates to map coordinates (applies offset and turns (x,y,z) into (x,-z,y))
Writes configuration to a DOM element, to be used later with
readXml()
Signals
Emitted when 3d axis rendering settings are changed
Emitted when the background color has changed [signal]
Emitted when the camera movement speed was changed
Emitted when the camera navigation mode was changed
Emitted when depth map debugging has changed
Emitted when the debug overaly is enabled or disabled
Emitted when shadow map debugging has changed
Emitted when the list of directional lights changes
Emitted when the eye dome lighting distance has changed
Emitted when the flag whether eye dome lighting is used has changed
Emitted when the eye dome lighting strength has changed
Emitted when the camera lens field of view changes
Emitted when the FPS counter is enabled or disabled
Emitted when the list of map layers for 3d rendering has changed.
Emitted when any of the light source settings in the map changes.
Emitted when the map tile resoulution has changed [signal]
Emitted when the maximum terrain ground error has changed [signal]
Emitted when the maximum terrain screen error has changed [signal]
Emitted when the list of point lights changes
Emitted when the camera lens projection type changes
Emitted when the list of map's extra renderers have been modified
Emitted when the selection color has changed [signal]
Emitted when one of the configuration settings has changed
Emitted when shadow rendering settings are changed
Emitted when the flag whether camera's rotation center is shown has changed
Emitted when the flag whether camera's view center is shown has changed
Emitted when the flag whether labels are displayed on terrain tiles has changed [signal]
Emitted when the flag whether light source origins are shown has changed.
Emitted when the flag whether terrain's bounding boxes are shown has changed [signal]
Emitted when the flag whether terrain's tile info is shown has changed [signal]
Emitted when skybox settings are changed
Emitted when the terrain elevation offset is changed
Emitted when the terrain generator has changed [signal]
Emitted when terrain's map theme has changed
Emitted when terrain shading enabled flag or terrain shading material has changed
Emitted when the vertical scale of the terrain has changed [signal]
Emitted when the camera's view frustum visualization on the main 2D map canvas is enabled or disabled
- axisSettingsChanged¶
Emitted when 3d axis rendering settings are changed
New in version 3.26: [signal]
- backgroundColor(self) QColor ¶
Returns background color of the 3D map view
- Return type
QColor
- backgroundColorChanged¶
Emitted when the background color has changed [signal]
- cameraMovementSpeed(self) float ¶
Returns the camera movement speed
New in version 3.18.
- Return type
float
- cameraMovementSpeedChanged¶
Emitted when the camera movement speed was changed
New in version 3.18: [signal]
Emitted when the camera navigation mode was changed
New in version 3.18: [signal]
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- crs(self) QgsCoordinateReferenceSystem ¶
Returns coordinate reference system used in the 3D scene
- Return type
- customEvent(self, QEvent)¶
- debugDepthMapCorner(self) Qt.Corner ¶
Returns the corner where the shadow map preview is displayed
- Return type
Qt.Corner
- debugDepthMapEnabled(self) bool ¶
Returns whether the shadow map debugging is enabled
- Return type
bool
- debugDepthMapSettingsChanged¶
Emitted when depth map debugging has changed
New in version 3.18: [signal]
- debugDepthMapSize(self) float ¶
Returns the size of the shadow map preview
- Return type
float
- debugOverlayEnabledChanged¶
Emitted when the debug overaly is enabled or disabled
New in version 3.26: [signal]
- Parameters
debugOverlayEnabled (bool) –
- debugShadowMapCorner(self) Qt.Corner ¶
Returns the corner where the shadow map preview is displayed
- Return type
Qt.Corner
- debugShadowMapEnabled(self) bool ¶
Returns whether the shadow map debugging is enabled
- Return type
bool
- debugShadowMapSettingsChanged¶
Emitted when shadow map debugging has changed
New in version 3.18: [signal]
- debugShadowMapSize(self) float ¶
Returns the size of the shadow map preview
- Return type
float
- directionalLightsChanged¶
Emitted when the list of directional lights changes
New in version 3.16: [signal]
- disconnectNotify(self, QMetaMethod)¶
- eyeDomeLightingDistance(self) int ¶
Returns the eye dome lighting distance value (contributes to the contrast of the image)
- Return type
int
- eyeDomeLightingDistanceChanged¶
Emitted when the eye dome lighting distance has changed
New in version 3.18: [signal]
- eyeDomeLightingEnabled(self) bool ¶
Returns whether eye dome lighting is used
- Return type
bool
- eyeDomeLightingEnabledChanged¶
Emitted when the flag whether eye dome lighting is used has changed
New in version 3.18: [signal]
- eyeDomeLightingStrength(self) float ¶
Returns the eye dome lighting strength value
- Return type
float
- eyeDomeLightingStrengthChanged¶
Emitted when the eye dome lighting strength has changed
New in version 3.18: [signal]
- fieldOfView(self) float ¶
Returns the camera lens’ field of view
New in version 3.8.
- Return type
float
- fieldOfViewChanged¶
Emitted when the camera lens field of view changes
New in version 3.8: [signal]
- fpsCounterEnabledChanged¶
Emitted when the FPS counter is enabled or disabled
New in version 3.18: [signal]
- Parameters
fpsCounterEnabled (bool) –
- isDebugOverlayEnabled(self) bool ¶
Returns whether debug overlay is enabled
See also
New in version 3.26.
- Return type
bool
- isFpsCounterEnabled(self) bool ¶
Returns whether FPS counter label is enabled
See also
New in version 3.18.
- Return type
bool
- isSignalConnected(self, QMetaMethod) bool ¶
- isSkyboxEnabled(self) bool ¶
Returns whether the skybox is enabled.
See also
New in version 3.16.
- Return type
bool
- isTerrainShadingEnabled(self) bool ¶
Returns whether terrain shading is enabled. When enabled, in addition to the terrain texture generated from the map, the terrain rendering will take into account position of the lights, terrain normals and terrain shading material (ambient and specular colors, shininess).
New in version 3.6.
- Return type
bool
- layers(self) List[QgsMapLayer] ¶
Returns the list of 3D map layers to be rendered in the scene.
This setting dictates which layers are to be rendered using their 3D rendering configuration, if available.
See also
See also
- Return type
List[QgsMapLayer]
- layersChanged¶
Emitted when the list of map layers for 3d rendering has changed.
See also
See also
layers()
[signal]
- lightSources(self) List[QgsLightSource] ¶
Returns list of directional light sources defined in the scene.
See also
New in version 3.26.
- Return type
List[QgsLightSource]
- lightSourcesChanged¶
Emitted when any of the light source settings in the map changes.
New in version 3.26: [signal]
- mapThemeCollection(self) QgsMapThemeCollection ¶
Returns pointer to the collection of map themes. Normally this would be
QgsProject.mapThemeCollection()
of the currently used project. Without a valid map theme collection object it is not possible to resolve map themes from their names.New in version 3.6.
- Return type
- mapTileResolution(self) int ¶
Returns resolution (in pixels) of the texture of a terrain tile. This parameter influences how many zoom levels for terrain tiles there will be (together with
maxTerrainGroundError()
)- Return type
int
- mapTileResolutionChanged¶
Emitted when the map tile resoulution has changed [signal]
- mapToWorldCoordinates(self, mapCoords: QgsVector3D) QgsVector3D ¶
Converts map coordinates to 3D world coordinates (applies offset and turns (x,y,z) into (x,-z,y))
- Parameters
mapCoords (QgsVector3D) –
- Return type
- maxTerrainGroundError(self) float ¶
Returns maximum ground error of terrain tiles in world units. This parameter influences how many zoom levels there will be (together with
mapTileResolution()
). This value tells that when the given ground error is reached (e.g. 10 meters), it makes no sense to further split terrain tiles into finer ones because they will not add extra details anymore.- Return type
float
- maxTerrainGroundErrorChanged¶
Emitted when the maximum terrain ground error has changed [signal]
- maxTerrainScreenError(self) float ¶
Returns maximum allowed screen error of terrain tiles in pixels. This parameter decides how aggressively less detailed terrain tiles are swapped to more detailed ones as camera gets closer. Each tile has its error defined in world units - this error gets projected to screen pixels according to camera view and if the tile’s error is greater than the allowed error, it will be swapped by more detailed tiles with lower error.
- Return type
float
- maxTerrainScreenErrorChanged¶
Emitted when the maximum terrain screen error has changed [signal]
- origin(self) QgsVector3D ¶
Returns coordinates in map CRS at which 3D scene has origin (0,0,0)
- Return type
- outputDpi(self) float ¶
Returns DPI used for conversion between real world units (e.g. mm) and pixels Default value is 96
New in version 3.10.
- Return type
float
- pathResolver(self) QgsPathResolver ¶
Returns the path resolver for conversion between relative and absolute paths during rendering operations, e.g. for resolving relative symbol paths.
See also
New in version 3.0.
- Return type
- pointLightsChanged¶
Emitted when the list of point lights changes
New in version 3.6: [signal]
- projectionTypeChanged¶
Emitted when the camera lens projection type changes
New in version 3.18: [signal]
- readXml(self, elem: QDomElement, context: QgsReadWriteContext)¶
Reads configuration from a DOM element previously written by
writeXml()
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
- receivers(self, PYQT_SIGNAL) int ¶
- rendererUsage(self) Qgis.RendererUsage ¶
Returns the renderer usage
See also
New in version 3.24.
- Return type
- renderers(self) List[QgsAbstract3DRenderer] ¶
Returns list of extra 3D renderers
- Return type
List[QgsAbstract3DRenderer]
- renderersChanged¶
Emitted when the list of map’s extra renderers have been modified
New in version 3.10: [signal]
- resolveReferences(self, project: QgsProject)¶
Resolves references to other objects (map layers) after the call to
readXml()
- Parameters
project (QgsProject) –
- selectionColor(self) QColor ¶
Returns color used for selected features
- Return type
QColor
- selectionColorChanged¶
Emitted when the selection color has changed [signal]
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setBackgroundColor(self, color: Union[QColor, Qt.GlobalColor])¶
Sets background color of the 3D map view
- Parameters
color (Union[QColor) –
- setCameraMovementSpeed(self, movementSpeed: float)¶
Sets the camera movement speed
New in version 3.18.
- Parameters
movementSpeed (float) –
- setCrs(self, crs: QgsCoordinateReferenceSystem)¶
Sets coordinate reference system used in the 3D scene
- Parameters
crs (QgsCoordinateReferenceSystem) –
- setDebugDepthMapSettings(self, enabled: bool, corner: Qt.Corner, size: float)¶
Sets the debugging settings of the depth map
See also
New in version 3.18.
- Parameters
enabled (bool) –
corner (Qt.Corner) –
size (float) –
- setDebugShadowMapSettings(self, enabled: bool, corner: Qt.Corner, size: float)¶
Sets the debugging settings of the shadow map
See also
New in version 3.18.
- Parameters
enabled (bool) –
corner (Qt.Corner) –
size (float) –
- setEyeDomeLightingDistance(self, distance: int)¶
Sets the eye dome lighting distance value (contributes to the contrast of the image
See also
New in version 3.18.
- Parameters
distance (int) –
- setEyeDomeLightingEnabled(self, enabled: bool)¶
Sets whether eye dome lighting will be used
See also
New in version 3.18.
- Parameters
enabled (bool) –
- setEyeDomeLightingStrength(self, strength: float)¶
Sets the eye dome lighting strength value
See also
New in version 3.18.
- Parameters
strength (float) –
- setFieldOfView(self, fieldOfView: float)¶
Sets the camera lens’ field of view
New in version 3.8.
- Parameters
fieldOfView (float) –
- setIsDebugOverlayEnabled(self, debugOverlayEnabled: bool)¶
Sets whether debug overlay is enabled The debug overlay displays some debugging and profiling information. It has been introduced in Qt version 5.15. This parameter is transient. It is not saved in the project parameters.
See also
New in version 3.26.
- Parameters
debugOverlayEnabled (bool) –
- setIsFpsCounterEnabled(self, fpsCounterEnabled: bool)¶
Sets whether FPS counter label is enabled
See also
New in version 3.18.
- Parameters
fpsCounterEnabled (bool) –
- setIsSkyboxEnabled(self, enabled: bool)¶
Sets whether the skybox is enabled.
See also
New in version 3.16.
- Parameters
enabled (bool) –
- setLayers(self, layers: Iterable[QgsMapLayer])¶
Sets the list of 3D map
layers
to be rendered in the scene.This setting dictates which layers are to be rendered using their 3D rendering configuration, if available.
See also
See also
- Parameters
layers (Iterable[QgsMapLayer]) –
- setLightSources(self, lights: Iterable[QgsLightSource])¶
Sets the list of
light
sources defined in the scene.Ownership of the lights is transferred to the settings.
See also
New in version 3.26.
- Parameters
lights (Iterable[QgsLightSource]) –
- setMapThemeCollection(self, mapThemes: QgsMapThemeCollection)¶
Sets pointer to the collection of map themes.
See also
New in version 3.6.
- Parameters
mapThemes (QgsMapThemeCollection) –
- setMapTileResolution(self, res: int)¶
Sets resolution (in pixels) of the texture of a terrain tile
See also
- Parameters
res (int) –
- setMaxTerrainGroundError(self, error: float)¶
Returns maximum ground error of terrain tiles in world units.
See also
- Parameters
error (float) –
- setMaxTerrainScreenError(self, error: float)¶
Sets maximum allowed screen error of terrain tiles in pixels.
See also
- Parameters
error (float) –
- setOrigin(self, origin: QgsVector3D)¶
Sets coordinates in map CRS at which our 3D world has origin (0,0,0)
We move the 3D world origin to the center of the extent of our terrain: this is done to minimize the impact of numerical errors when operating with 32-bit floats. Unfortunately this is not enough when working with a large area (still results in jitter with scenes spanning hundreds of kilometers and zooming in a lot).
Need to look into more advanced techniques like “relative to center” or “relative to eye” to improve the precision.
- Parameters
origin (QgsVector3D) –
- setOutputDpi(self, dpi: float)¶
Sets DPI used for conversion between real world units (e.g. mm) and pixels
- Parameters
dpi (float) – the number of dot per inch
New in version 3.10.
- setPathResolver(self, resolver: QgsPathResolver)¶
Sets the path
resolver
for conversion between relative and absolute paths during rendering operations, e.g. for resolving relative symbol paths.See also
New in version 3.0.
- Parameters
resolver (QgsPathResolver) –
- setRendererUsage(self, rendererUsage: Qgis.RendererUsage)¶
Sets the renderer usage
See also
New in version 3.24.
- Parameters
rendererUsage (Qgis.RendererUsage) –
- setRenderers(self, renderers: Iterable[QgsAbstract3DRenderer])¶
Sets list of extra 3D renderers to use in the scene. Takes ownership of the objects.
- Parameters
renderers (Iterable[QgsAbstract3DRenderer]) –
- setSelectionColor(self, color: Union[QColor, Qt.GlobalColor])¶
Sets color used for selected features
- Parameters
color (Union[QColor) –
- setShowCameraRotationCenter(self, enabled: bool)¶
Sets whether to show camera’s rotation center as a sphere (for debugging)
New in version 3.24.
- Parameters
enabled (bool) –
- setShowCameraViewCenter(self, enabled: bool)¶
Sets whether to show camera’s view center as a sphere (for debugging)
New in version 3.4.
- Parameters
enabled (bool) –
- setShowLabels(self, enabled: bool)¶
Sets whether to display labels on terrain tiles
- Parameters
enabled (bool) –
- setShowLightSourceOrigins(self, enabled: bool)¶
Sets whether to show light source origins as a sphere (for debugging)
New in version 3.16.
- Parameters
enabled (bool) –
- setShowTerrainBoundingBoxes(self, enabled: bool)¶
Sets whether to display bounding boxes of terrain tiles (for debugging)
- Parameters
enabled (bool) –
- setShowTerrainTilesInfo(self, enabled: bool)¶
Sets whether to display extra tile info on top of terrain tiles (for debugging)
- Parameters
enabled (bool) –
- setTerrainElevationOffset(self, offset: float)¶
Sets the terrain elevation offset (used to move the terrain up or down)
See also
New in version 3.18.
- Parameters
offset (float) –
- setTerrainMapTheme(self, theme: str)¶
Sets name of the map theme.
See also
New in version 3.6.
- Parameters
theme (str) –
- setTerrainRenderingEnabled(self, terrainRenderingEnabled: bool)¶
Sets whether the 2D terrain surface will be rendered in.
See also
New in version 3.22.
- Parameters
terrainRenderingEnabled (bool) –
- setTerrainShadingEnabled(self, enabled: bool)¶
Sets whether terrain shading is enabled.
See also
New in version 3.6.
- Parameters
enabled (bool) –
- setTerrainShadingMaterial(self, material: QgsPhongMaterialSettings)¶
Sets terrain shading material.
See also
New in version 3.6.
- Parameters
material (QgsPhongMaterialSettings) –
- setTerrainVerticalScale(self, zScale: float)¶
Sets vertical scale (exaggeration) of terrain (1 = true scale, > 1 = hills get more pronounced)
- Parameters
zScale (float) –
- setTransformContext(self, context: QgsCoordinateTransformContext)¶
Sets 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.See also
- Parameters
context (QgsCoordinateTransformContext) –
- setViewFrustumVisualizationEnabled(self, enabled: bool)¶
Sets whether the camera’s view frustum is visualized on the 2D map canvas
New in version 3.26.
- Parameters
enabled (bool) –
- setViewSyncMode(self, mode: Union[Qgis.ViewSyncModeFlags, Qgis.ViewSyncModeFlag])¶
Sets the view sync mode (used to synchronize the 2D main map canvas and the 3D camera navigation)
New in version 3.26.
- Parameters
mode (Union[Qgis.ViewSyncModeFlags) –
- settingsChanged¶
Emitted when one of the configuration settings has changed
New in version 3.24: [signal]
- shadowSettingsChanged¶
Emitted when shadow rendering settings are changed
New in version 3.16: [signal]
- showCameraRotationCenter(self) bool ¶
Returns whether to show camera’s rotation center as a sphere (for debugging)
New in version 3.24.
- Return type
bool
- showCameraRotationCenterChanged¶
Emitted when the flag whether camera’s rotation center is shown has changed
New in version 3.24: [signal]
- showCameraViewCenter(self) bool ¶
Returns whether to show camera’s view center as a sphere (for debugging)
New in version 3.4.
- Return type
bool
- showCameraViewCenterChanged¶
Emitted when the flag whether camera’s view center is shown has changed
New in version 3.4: [signal]
- showLabels(self) bool ¶
Returns whether to display labels on terrain tiles
- Return type
bool
- showLabelsChanged¶
Emitted when the flag whether labels are displayed on terrain tiles has changed [signal]
- showLightSourceOrigins(self) bool ¶
Returns whether to show light source origins as a sphere (for debugging)
New in version 3.16.
- Return type
bool
- showLightSourceOriginsChanged¶
Emitted when the flag whether light source origins are shown has changed.
New in version 3.15: [signal]
- showTerrainBoundingBoxes(self) bool ¶
Returns whether to display bounding boxes of terrain tiles (for debugging)
- Return type
bool
- showTerrainBoundingBoxesChanged¶
Emitted when the flag whether terrain’s bounding boxes are shown has changed [signal]
- showTerrainTilesInfo(self) bool ¶
Returns whether to display extra tile info on top of terrain tiles (for debugging)
- Return type
bool
- showTerrainTilesInfoChanged¶
Emitted when the flag whether terrain’s tile info is shown has changed [signal]
- skyboxSettingsChanged¶
Emitted when skybox settings are changed
New in version 3.16: [signal]
- terrainElevationOffset(self) float ¶
Returns the elevation offset of the terrain (used to move the terrain up or down)
- Return type
float
- terrainElevationOffsetChanged¶
Emitted when the terrain elevation offset is changed
New in version 3.16: [signal]
- Parameters
newElevation (float) –
- terrainGeneratorChanged¶
Emitted when the terrain generator has changed [signal]
- terrainMapTheme(self) str ¶
Returns name of the map theme (from the active project) that will be used for terrain’s texture. Empty map theme name means that the map theme is not overridden and the current map theme will be used.
Note
Support for map themes only works if
mapThemeCollection()
is a valid object (otherwise it is not possible to resolve map themes from names)New in version 3.6.
- Return type
str
- terrainMapThemeChanged¶
Emitted when terrain’s map theme has changed
New in version 3.6: [signal]
- terrainRenderingEnabled(self) bool ¶
Returns whether the 2D terrain surface will be rendered.
See also
New in version 3.22.
- Return type
bool
- terrainShadingChanged¶
Emitted when terrain shading enabled flag or terrain shading material has changed
New in version 3.6: [signal]
- terrainShadingMaterial(self) QgsPhongMaterialSettings ¶
Returns terrain shading material. Diffuse color component is ignored since the diffuse component is provided by 2D rendered map texture. Only used when
isTerrainShadingEnabled()
isTrue
.New in version 3.6.
- Return type
- terrainVerticalScale(self) float ¶
Returns vertical scale (exaggeration) of terrain
- Return type
float
- terrainVerticalScaleChanged¶
Emitted when the vertical scale of the terrain has changed [signal]
- timerEvent(self, QTimerEvent)¶
- transformContext(self) QgsCoordinateTransformContext ¶
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.
See also
- Return type
- viewFrustumVisualizationEnabled(self) bool ¶
Returns whether the camera’s view frustum is visualized on the 2D map canvas
New in version 3.26.
- Return type
bool
- viewFrustumVisualizationEnabledChanged¶
Emitted when the camera’s view frustum visualization on the main 2D map canvas is enabled or disabled
New in version 3.26: [signal]
- viewSyncMode(self) Qgis.ViewSyncModeFlags ¶
Returns the view sync mode (used to synchronize the 2D main map canvas and the 3D camera navigation)
New in version 3.26.
- Return type
- worldToMapCoordinates(self, worldCoords: QgsVector3D) QgsVector3D ¶
Converts 3D world coordinates to map coordinates (applies offset and turns (x,y,z) into (x,-z,y))
- Parameters
worldCoords (QgsVector3D) –
- Return type
- writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
Writes configuration to a DOM element, to be used later with
readXml()
- Parameters
doc (QDomDocument) –
context (QgsReadWriteContext) –
- Return type
QDomElement