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).
New in version 3.0: Enums
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
Signals
Attributes
-
clone
(self) → QgsAbstract3DRenderer¶ Returns a cloned instance
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Reads renderer’s properties from given XML element
-
resolveReferences
(self, project: QgsProject)¶ Resolves references to other objects - second phase of loading - after readXml()
-
type
(self) → str¶ Returns unique identifier of the renderer class (used to identify subclass)
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Writes renderer’s properties to given XML element
-