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.

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.16.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: create(), supportsTechnique()

List of all members, including inherited members

Abstract Methods

create

Creates a new instance of this material settings type.

supportsTechnique

Returns True if the material type supports the specified rendering technique.

Methods

icon

Returns an icon representing the material type, if available.

type

Returns the unique material type string.

visibleName

Returns the material's visible (translated) name.

class qgis._3d.QgsMaterialSettingsAbstractMetadata

Bases: object

__init__(type: str | None, visibleName: str | None, icon: QIcon = QIcon())

Constructor for QgsMaterialSettingsAbstractMetadata, with the specified type and visibleName.

An optional icon can be specified to represent the material type.

Parameters:
__init__(a0: QgsMaterialSettingsAbstractMetadata)
Parameters:

a0 (QgsMaterialSettingsAbstractMetadata)

abstract create(self) QgsAbstractMaterialSettings | None

Creates a new instance of this material settings type.

Caller takes ownership of the returned object.

Return type:

Optional[QgsAbstractMaterialSettings]

icon(self) QIcon

Returns an icon representing the material type, if available.

Return type:

QIcon

abstract supportsTechnique(self, technique: Qgis.MaterialRenderingTechnique) bool

Returns True if the material type supports the specified rendering technique.

Parameters:

technique (Qgis.MaterialRenderingTechnique)

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