Class: QgsAbstract3DRenderer

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).

Class Hierarchy

Inheritance diagram of qgis.core.QgsAbstract3DRenderer

Subclasses

QgsAbstractPointCloud3DRenderer

Base class for point cloud 3D renderers.

QgsAbstractVectorLayer3DRenderer

Base class for 3D renderers that are based on vector layers.

QgsTiledSceneLayer3DRenderer

3D renderer that renders content of a tiled scene layer

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

class qgis.core.QgsAbstract3DRenderer[source]

Bases: object

clone(self) QgsAbstract3DRenderer | None[source]

Returns a cloned instance

Return type:

Optional[QgsAbstract3DRenderer]

readXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Reads renderer’s properties from given XML element

Parameters:
resolveReferences(self, project: QgsProject)[source]

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

Parameters:

project (QgsProject)

type(self) str[source]

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

Return type:

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Writes renderer’s properties to given XML element

Parameters: