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¶
Base classes¶
Abstract base class for material settings. |
Methods
Returns the ambient color component. |
|
Sets the ambient color component. |
|
Static Methods
Returns a new instance of QgsSimpleLineMaterialSettings. |
|
Returns |
- class qgis._3d.QgsSimpleLineMaterialSettings[source]¶
Bases:
QgsAbstractMaterialSettings
- 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
- Parameters:
ambient (Union[QColor, Qt.GlobalColor])
- static supportsTechnique(technique: QgsMaterialSettingsRenderingTechnique) bool [source]¶
Returns
True
if the specifiedtechnique
is supported by the material.- Parameters:
technique (QgsMaterialSettingsRenderingTechnique)
- Return type:
bool
- toExportParameters(self) Dict[str, str] ¶
- Return type:
Dict[str, str]