Class: QgsSimpleLineMaterialSettings

class qgis.3d.QgsSimpleLineMaterialSettings

Bases: qgis._3d.QgsAbstractMaterialSettings

Constructor for QgsSimpleLineMaterialSettings.

QgsSimpleLineMaterialSettings(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.

New in version 3.16:

Methods

ambient

Returns the ambient color component.

clone

rtype

QgsSimpleLineMaterialSettings

create

Returns a new instance of QgsSimpleLineMaterialSettings.

readXml

param elem

setAmbient

Sets the ambient color component.

supportsTechnique

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

toExportParameters

rtype

Dict[str, str]

type

rtype

str

writeXml

param elem

ambient(self) QColor

Returns the ambient color component.

See also

setAmbient()

Return type

QColor

clone(self) QgsSimpleLineMaterialSettings
Return type

QgsSimpleLineMaterialSettings

create() QgsAbstractMaterialSettings

Returns a new instance of QgsSimpleLineMaterialSettings.

Return type

QgsAbstractMaterialSettings

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters
setAmbient(self, ambient: Union[QColor, Qt.GlobalColor])

Sets the ambient color component.

See also

ambient()

Parameters

ambient (Union[QColor) –

supportsTechnique(technique: QgsMaterialSettingsRenderingTechnique) bool

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

Parameters

technique (QgsMaterialSettingsRenderingTechnique) –

Return type

bool

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

Dict[str, str]

type(self) str
Return type

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters