Class: QgsUnlitMaterialSettings

Basic shading material used for rendering solid color, unlit objects.

Unlit objects are flat shaded, with no interaction with lights in the scene.

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

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsUnlitMaterialSettings

Base classes

QgsAbstractMaterialSettings

Abstract base class for material settings.

Methods

color

Returns the material color.

setColor

Sets the material's color.

Static Methods

create

Returns a new instance of QgsUnlitMaterialSettings.

supportsTechnique

Returns True if the specified technique is supported by the material.

class qgis.core.QgsUnlitMaterialSettings[source]

Bases: QgsAbstractMaterialSettings

color(self) QColor[source]

Returns the material color.

See also

setColor()

Return type:

QColor

static create() QgsAbstractMaterialSettings | None[source]

Returns a new instance of QgsUnlitMaterialSettings.

Return type:

Optional[QgsAbstractMaterialSettings]

setColor(self, color: QColor | Qt.GlobalColor | int)[source]

Sets the material’s color.

See also

color()

Parameters:

color (Union[QColor, Qt.GlobalColor, int])

static supportsTechnique(technique: Qgis.MaterialRenderingTechnique) bool[source]

Returns True if the specified technique is supported by the material.

Parameters:

technique (Qgis.MaterialRenderingTechnique)

Return type:

bool