Class: QgsSimpleLineMaterialSettings¶
- class qgis.3d.QgsSimpleLineMaterialSettings¶
Bases:
qgis._3d.QgsAbstractMaterialSettings
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.
QgsSimpleLineMaterialSettings() Constructor for QgsSimpleLineMaterialSettings.
QgsSimpleLineMaterialSettings(
QgsSimpleLineMaterialSettings
)Methods
Returns the ambient color component.
- rtype
QgsSimpleLineMaterialSettings
Returns a new instance of QgsSimpleLineMaterialSettings.
- param elem
Sets the
ambient
color component.Returns
True
if the specifiedtechnique
is supported by the material.- rtype
Dict[str, str]
- rtype
str
- param elem
- ambient(self) QColor ¶
Returns the ambient color component.
See also
- Return type
QColor
- clone(self) QgsSimpleLineMaterialSettings ¶
- Return type
- create() QgsAbstractMaterialSettings ¶
Returns a new instance of QgsSimpleLineMaterialSettings.
- Return type
- readXml(self, elem: QDomElement, context: QgsReadWriteContext)¶
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
- setAmbient(self, ambient: Union[QColor, Qt.GlobalColor])¶
Sets the
ambient
color component.See also
- Parameters
ambient (Union[QColor) –
- supportsTechnique(technique: QgsMaterialSettingsRenderingTechnique) bool ¶
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]
- type(self) str ¶
- Return type
str
- writeXml(self, elem: QDomElement, context: QgsReadWriteContext)¶
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –