Class: QgsMaterialSettingsAbstractMetadata¶
Stores metadata about one 3D material settings class.
Note
It’s necessary to implement createMaterialSettings()
function.
In C++ you can use QgsMaterialSettingsMetadata
convenience class.
Added in version 3.16.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: create()
, supportsTechnique()
Abstract Methods
Creates a new instance of this material settings type. |
|
Returns |
Methods
Returns an icon representing the material type, if available. |
|
Returns the unique material type string. |
|
Returns the material's visible (translated) name. |
- class qgis._3d.QgsMaterialSettingsAbstractMetadata[source]¶
Bases:
object
- __init__(type: str | None, visibleName: str | None, icon: QIcon = QIcon())
Constructor for QgsMaterialSettingsAbstractMetadata, 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: QgsMaterialSettingsAbstractMetadata)
- Parameters:
- abstract create(self) QgsAbstractMaterialSettings | None [source]¶
Creates a new instance of this material settings type.
Caller takes ownership of the returned object.
- Return type:
Optional[QgsAbstractMaterialSettings]
- icon(self) QIcon [source]¶
Returns an icon representing the material type, if available.
- Return type:
QIcon
- abstract supportsTechnique(self, technique: QgsMaterialSettingsRenderingTechnique) bool [source]¶
Returns
True
if the material type supports the specified renderingtechnique
.- Parameters:
technique (QgsMaterialSettingsRenderingTechnique)
- Return type:
bool