Class: QgsMaterialRegistry¶
Registry of available 3d material settings classes.
QgsMaterialRegistry is not usually directly created, but
rather accessed through QgsApplication.materialRegistry().
Added in version 3.16.
List of all members, including inherited members
Methods
Registers a new material settings type. |
|
Creates a new instance of the material settings of the specified type. |
|
Returns metadata for specified material settings type. |
|
Returns a list of all available material settings types. |
|
Populates the registry with standard material types. |
- class qgis.core.QgsMaterialRegistry[source]¶
Bases:
object- addMaterialSettingsType(self, metadata: QgsMaterialSettingsAbstractMetadata | None) bool[source]¶
Registers a new material settings type. Takes ownership of the
metadatainstance.- Parameters:
metadata (Optional[QgsMaterialSettingsAbstractMetadata])
- Return type:
bool
- createMaterialSettings(self, type: str | None) QgsAbstractMaterialSettings | None¶
Creates a new instance of the material settings of the specified
type.The caller takes ownership of the returned object.
Returns
Noneif the specified type is not found in the registry.- Parameters:
type (Optional[str])
- Return type:
- materialSettingsMetadata(self, type: str | None) QgsMaterialSettingsAbstractMetadata | None[source]¶
Returns metadata for specified material settings
type. ReturnsNoneif not found- Parameters:
type (Optional[str])
- Return type: