Class: QgsAbstract3DRenderer¶
-
class
qgis.core.
QgsAbstract3DRenderer
¶ Bases:
sip.wrapper
Default constructor
Base class for all renderers that may to participate in 3D view.
3D renderers implement the method
createEntity()
that returns a new 3D entity - that entity will be added to the 3D scene to represent data in renderer’s display style.Renderers may store some custom properties (e.g. materials, sizes) that are written to and read from XML. It is therefore not recommended to store large amount of data within a renderer (e.g. arrays of vertices).
Methods
Returns a cloned instance
Reads renderer’s properties from given XML element
Resolves references to other objects - second phase of loading - after
readXml()
Returns unique identifier of the renderer class (used to identify subclass)
Writes renderer’s properties to given XML element
-
clone
(self) → QgsAbstract3DRenderer¶ Returns a cloned instance
- Return type
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Reads renderer’s properties from given XML element
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
resolveReferences
(self, project: QgsProject)¶ Resolves references to other objects - second phase of loading - after
readXml()
- Parameters
project (QgsProject) –
-
type
(self) → str¶ Returns unique identifier of the renderer class (used to identify subclass)
- Return type
str
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Writes renderer’s properties to given XML element
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-