Class: QgsVectorLayer3DRenderer

3D renderer that renders all features of a vector layer with the same 3D symbol.

The appearance is completely defined by the symbol.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsVectorLayer3DRenderer

Base classes

QgsAbstractVectorLayer3DRenderer

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

QgsAbstract3DRenderer

Base class for all renderers that participate in 3D views.

Methods

copyBaseProperties

readXmlBaseProperties

setSymbol

Sets 3D symbol associated with the renderer.

symbol

Returns 3D symbol associated with the renderer

writeXmlBaseProperties

class qgis._3d.QgsVectorLayer3DRenderer[source]

Bases: QgsAbstractVectorLayer3DRenderer

__init__(s: QgsAbstract3DSymbol | None = None)

Takes ownership of the symbol object

Parameters:

s (Optional[QgsAbstract3DSymbol] = None)

copyBaseProperties()
readXmlBaseProperties()
setSymbol(self, symbol: QgsAbstract3DSymbol | None)[source]

Sets 3D symbol associated with the renderer. Takes ownership of the symbol

Parameters:

symbol (Optional[QgsAbstract3DSymbol])

symbol(self) QgsAbstract3DSymbol | None[source]

Returns 3D symbol associated with the renderer

Return type:

Optional[QgsAbstract3DSymbol]

writeXmlBaseProperties()