QgsAbstract3DRenderer class
Base class for all renderers that may to participate in 3D view.
Contents
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).
Derived classes
- class QgsVectorLayer3DRenderer
- 3D renderer that renders all features of a vector layer with the same 3D symbol.
Constructors, destructors, conversion operators
- QgsAbstract3DRenderer() protected defaulted
- Default constructor.
Public functions
- auto clone() const -> QgsAbstract3DRenderer* pure virtual
- Returns a cloned instance.
- auto createEntity(const Qgs3DMapSettings& map) const -> Qt3DCore::QEntity* pure virtual
- Returns a 3D entity that will be used to show renderer's data in 3D scene.
- void readXml(const QDomElement& elem, const QgsReadWriteContext& context) pure virtual
- Reads renderer's properties from given XML element.
- void resolveReferences(const QgsProject& project) virtual
- Resolves references to other objects - second phase of loading - after readXml()
- auto type() const -> QString pure virtual
- Returns unique identifier of the renderer class (used to identify subclass)
- void writeXml(QDomElement& elem, const QgsReadWriteContext& context) const pure virtual
- Writes renderer's properties to given XML element.