Class: QgsAbstract3DRenderer

class qgis.core.QgsAbstract3DRenderer

Bases: sip.wrapper

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.

QgsAbstract3DRenderer() Default constructor

Methods

clone

Returns a cloned instance

readXml

Reads renderer’s properties from given XML element

resolveReferences

Resolves references to other objects - second phase of loading - after readXml()

type

Returns unique identifier of the renderer class (used to identify subclass)

writeXml

Writes renderer’s properties to given XML element

clone(self)QgsAbstract3DRenderer

Returns a cloned instance

Return type

QgsAbstract3DRenderer

readXml(self, elem: QDomElement, context: QgsReadWriteContext)

Reads renderer’s properties from given XML element

Parameters
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