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: 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

InstancedPoints = 2
Lines = 1
Points = 3
RenderingTechnique

alias of QgsMaterialSettingsRenderingTechnique

Triangles = 0
TrianglesWithFixedTexture = 4
clone(self)QgsAbstractMaterialSettings

Clones the material settings.

Caller takes ownership of the returned object.

Return type

QgsAbstractMaterialSettings

readXml(self, element: QDomElement, context: 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, context: QgsReadWriteContext)

Writes settings to a DOM element

Parameters