Class: QgsMaterialSettingsAbstractMetadata¶
- class qgis.3d.QgsMaterialSettingsAbstractMetadata¶
Bases:
sip.wrapper
Stores metadata about one 3D material settings class.
Note
It’s necessary to implement
createMaterialSettings()
function. In C++ you can useQgsMaterialSettingsMetadata
convenience class.New in version 3.16.
QgsMaterialSettingsAbstractMetadata(type: str, visibleName: str, icon: QIcon = QIcon()) Constructor for
QgsMaterialSettingsAbstractMetadata
, with the specifiedtype
andvisibleName
.An optional
icon
can be specified to represent the material type.QgsMaterialSettingsAbstractMetadata(
QgsMaterialSettingsAbstractMetadata
)Methods
Creates a new instance of this material settings type.
Returns an icon representing the material type, if available.
Returns
True
if the material type supports the specified renderingtechnique
.Returns the unique material type string.
Returns the material's visible (translated) name.
- create(self) QgsAbstractMaterialSettings ¶
Creates a new instance of this material settings type.
Caller takes ownership of the returned object.
- Return type
- icon(self) QIcon ¶
Returns an icon representing the material type, if available.
- Return type
QIcon
- supportsTechnique(self, technique: QgsMaterialSettingsRenderingTechnique) bool ¶
Returns
True
if the material type supports the specified renderingtechnique
.- Parameters
technique (QgsMaterialSettingsRenderingTechnique) –
- Return type
bool
- type(self) str ¶
Returns the unique material type string.
- Return type
str
- visibleName(self) str ¶
Returns the material’s visible (translated) name.
- Return type
str