Class: QgsAbstractMaterialSettings¶
-
class
qgis.3d.
QgsAbstractMaterialSettings
¶ Bases:
sip.wrapper
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.
New in version 3.0: Enums
alias of
qgis._3d.QgsMaterialSettingsRenderingTechnique
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
-
InstancedPoints
= 2¶
-
Lines
= 1¶
-
Points
= 3¶
-
RenderingTechnique
¶ alias of
qgis._3d.QgsMaterialSettingsRenderingTechnique
-
Triangles
= 0¶
-
TrianglesWithFixedTexture
= 4¶
-
clone
(self) → QgsAbstractMaterialSettings¶ Clones the material settings.
Caller takes ownership of the returned object.
- Return type
-
readXml
(self, element: QDomElement, context: QgsReadWriteContext)¶ Reads settings from a DOM
element
- Parameters
element (QDomElement) –
context (QgsReadWriteContext) –
-
type
(self) → str¶ Returns the unique type name for the material.
- Return type
str
-
writeXml
(self, element: QDomElement, context: QgsReadWriteContext)¶ Writes settings to a DOM
element
- Parameters
element (QDomElement) –
context (QgsReadWriteContext) –
-