Class: QgsAbstractMaterialSettings¶
Abstract base class for material settings.
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.
Class Hierarchy¶
Subclasses¶
Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular. |
|
A PBR metal rough shading material used for rendering. |
|
Null shading material used for rendering models and scenes with native textures. |
|
Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular. |
|
A phong shading model with diffuse texture map. |
|
Basic shading material used for rendering simple lines as solid line components. |
Enums
Methods
Clones the material settings. |
|
Reads settings from a DOM element |
|
Returns the unique type name for the material. |
|
Writes settings to a DOM element |
- class qgis._3d.QgsAbstractMaterialSettings[source]¶
Bases:
object
- RenderingTechnique¶
- clone(self) QgsAbstractMaterialSettings | None [source]¶
Clones the material settings.
Caller takes ownership of the returned object.
- Return type:
Optional[QgsAbstractMaterialSettings]
- readXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]¶
Reads settings from a DOM
element
- Parameters:
element (QDomElement)
a1 (QgsReadWriteContext)
- writeXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]¶
Writes settings to a DOM
element
- Parameters:
element (QDomElement)
a1 (QgsReadWriteContext)