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.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: clone()
, equals()
, type()
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
Abstract Methods
Clones the material settings. |
|
Returns |
|
Returns the unique type name for the material. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsAbstractMaterialSettings. See the FAQ for more details.
Reads settings from a DOM element |
|
Writes settings to a DOM element |
- class qgis._3d.QgsAbstractMaterialSettings[source]¶
Bases:
object
- RenderingTechnique¶
- abstract clone(self) QgsAbstractMaterialSettings | None [source]¶
Clones the material settings.
Caller takes ownership of the returned object.
- Return type:
Optional[QgsAbstractMaterialSettings]
- abstract equals(self, other: QgsAbstractMaterialSettings | None) bool [source]¶
Returns
True
if this settings exactly matches another
settings.Added in version 3.42.
- Parameters:
other (Optional[QgsAbstractMaterialSettings])
- Return type:
bool
- virtual readXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]¶
Reads settings from a DOM
element
- Parameters:
element (QDomElement)
a1 (QgsReadWriteContext)
- virtual writeXml(self, element: QDomElement, a1: QgsReadWriteContext)[source]¶
Writes settings to a DOM
element
- Parameters:
element (QDomElement)
a1 (QgsReadWriteContext)