Class: QgsSimpleLineMaterialSettings

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

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.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsSimpleLineMaterialSettings

Base classes

QgsAbstractMaterialSettings

Abstract base class for material settings.

class qgis._3d.QgsSimpleLineMaterialSettings[source]

Bases: QgsAbstractMaterialSettings

ambient(self) QColor[source]

Returns the ambient color component.

See also

setAmbient()

Return type:

QColor

static create() QgsAbstractMaterialSettings | None[source]

Returns a new instance of QgsSimpleLineMaterialSettings.

Return type:

Optional[QgsAbstractMaterialSettings]

setAmbient(self, ambient: QColor | Qt.GlobalColor)[source]

Sets the ambient color component.

See also

ambient()

Parameters:

ambient (Union[QColor, Qt.GlobalColor])

static supportsTechnique(technique: QgsMaterialSettingsRenderingTechnique) bool[source]

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

Parameters:

technique (QgsMaterialSettingsRenderingTechnique)

Return type:

bool

virtual toExportParameters(self) Dict[str, str]
Return type:

Dict[str, str]