Class: QgsAbstractMaterialSettings

class qgis._3d.QgsAbstractMaterialSettings

Bases: sip.wrapper

Abstract base class for material settings.

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.

New in version 3.0:

Methods

clone

Clones the material settings.

readXml

Reads settings from a DOM element

type

Returns the unique type name for the material.

writeXml

Writes settings to a DOM element

clone(self) QgsAbstractMaterialSettings

Clones the material settings.

Caller takes ownership of the returned object.

Return type

QgsAbstractMaterialSettings

readXml(self, element: QDomElement, a1: QgsReadWriteContext)

Reads settings from a DOM element

Parameters
type(self) str

Returns the unique type name for the material.

Return type

str

writeXml(self, element: QDomElement, a1: QgsReadWriteContext)

Writes settings to a DOM element

Parameters