Class: Qgs3DTerrainAbstractMetadata¶
Stores metadata about one 3D terrain class.
Note
It’s necessary to implement createTerrainSettings()
function.
In C++ you can use Qgs3DTerrainMetadata convenience class.
Added in version 3.42.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: createTerrainSettings()
Abstract Methods
Creates a new instance of this terrain settings type. |
Methods
Returns an icon representing the terrain type, if available. |
|
Returns the unique terrain type string. |
|
Returns the terrain's visible (translated) name. |
- class qgis._3d.Qgs3DTerrainAbstractMetadata[source]¶
Bases:
object
- __init__(type: str | None, visibleName: str | None, icon: QIcon = QIcon())
Constructor for Qgs3DTerrainAbstractMetadata, with the specified
type
andvisibleName
.An optional
icon
can be specified to represent the material type.- Parameters:
type (Optional[str])
visibleName (Optional[str])
icon (QIcon = QIcon())
- __init__(a0: Qgs3DTerrainAbstractMetadata)
- Parameters:
- abstract createTerrainSettings(self) QgsAbstractTerrainSettings | None [source]¶
Creates a new instance of this terrain settings type.
Caller takes ownership of the returned object.
- Return type:
Optional[QgsAbstractTerrainSettings]