Class: QgsAbstractMaterialSettings

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.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsAbstractMaterialSettings

Subclasses

QgsGoochMaterialSettings

Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular.

QgsMetalRoughMaterialSettings

A PBR metal rough shading material used for rendering.

QgsNullMaterialSettings

Null shading material used for rendering models and scenes with native textures.

QgsPhongMaterialSettings

Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular.

QgsPhongTexturedMaterialSettings

A phong shading model with diffuse texture map.

QgsSimpleLineMaterialSettings

Basic shading material used for rendering simple lines as solid line components.

Enums

RenderingTechnique

alias of QgsMaterialSettingsRenderingTechnique

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

class qgis._3d.QgsAbstractMaterialSettings[source]

Bases: object

RenderingTechnique

alias of QgsMaterialSettingsRenderingTechnique

clone(self) QgsAbstractMaterialSettings | None[source]

Clones the material settings.

Caller takes ownership of the returned object.

Return type:

Optional[QgsAbstractMaterialSettings]

readXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]

Reads settings from a DOM element

Parameters:
type(self) str[source]

Returns the unique type name for the material.

Return type:

str

writeXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]

Writes settings to a DOM element

Parameters: