Class: QgsMeshTerrainSettings¶
Terrain settings for a terrain generator that uses the Z values of a mesh layer to build a terrain.
Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Added in version 3.42.
Class Hierarchy¶
Base classes¶
Base class for all terrain settings classes. |
Methods
Returns the mesh layer with elevation model to be used for terrain generation. |
|
Sets the mesh layer with elevation model to be used for terrain generation. |
|
Sets the symbol used to render the mesh as terrain. |
|
Returns the symbol used to render the mesh as terrain. |
|
Static Methods
Creates a new instance of a |
- class qgis._3d.QgsMeshTerrainSettings[source]¶
Bases:
QgsAbstractTerrainSettings
- copyCommonProperties()¶
- static create() QgsAbstractTerrainSettings | None [source]¶
Creates a new instance of a
QgsMeshTerrainSettings
object.- Return type:
Optional[QgsAbstractTerrainSettings]
- equalsCommon()¶
- layer(self) QgsMeshLayer | None [source]¶
Returns the mesh layer with elevation model to be used for terrain generation.
See also
- Return type:
Optional[QgsMeshLayer]
- readCommonProperties()¶
- setLayer(self, layer: QgsMeshLayer | None)[source]¶
Sets the mesh
layer
with elevation model to be used for terrain generation.See also
- Parameters:
layer (Optional[QgsMeshLayer])
- setSymbol(self, symbol: QgsMesh3DSymbol | None)[source]¶
Sets the symbol used to render the mesh as terrain.
See also
- Parameters:
symbol (Optional[QgsMesh3DSymbol])
- symbol(self) QgsMesh3DSymbol | None [source]¶
Returns the symbol used to render the mesh as terrain.
See also
- Return type:
Optional[QgsMesh3DSymbol]
- writeCommonProperties()¶