QgsVectorLayer3DRenderer class

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

The appearance is completely defined by the symbol.

Base classes

class QgsAbstract3DRenderer
Base class for all renderers that may to participate in 3D view.

Constructors, destructors, conversion operators

QgsVectorLayer3DRenderer(QgsAbstract3DSymbol* s = nullptr) explicit
Takes ownership of the symbol object.

Public functions

auto clone() const -> QgsVectorLayer3DRenderer* override
Returns a cloned instance.
auto createEntity(const Qgs3DMapSettings& map) const -> Qt3DCore::QEntity* override
Returns a 3D entity that will be used to show renderer's data in 3D scene.
auto layer() const -> QgsVectorLayer*
Returns vector layer associated with the renderer.
void readXml(const QDomElement& elem, const QgsReadWriteContext& context) override
Reads renderer's properties from given XML element.
void resolveReferences(const QgsProject& project) override
Resolves references to other objects - second phase of loading - after readXml()
void setLayer(QgsVectorLayer* layer)
Sets vector layer associated with the renderer.
void setSymbol(QgsAbstract3DSymbol* symbol)
Sets 3D symbol associated with the renderer. Takes ownership of the symbol.
auto symbol() const -> const QgsAbstract3DSymbol*
Returns 3D symbol associated with the renderer.
auto type() const -> QString override
Returns unique identifier of the renderer class (used to identify subclass)
void writeXml(QDomElement& elem, const QgsReadWriteContext& context) const override
Writes renderer's properties to given XML element.