QGIS API Documentation
3.0.2-Girona (307d082)
|
Base class for all renderers that may to participate in 3D view. More...
#include <qgsabstract3drenderer.h>
Public Member Functions | |
virtual | ~QgsAbstract3DRenderer ()=default |
virtual QgsAbstract3DRenderer * | clone () const =0 |
Returns a cloned instance. More... | |
virtual Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map) const =0 |
Returns a 3D entity that will be used to show renderer's data in 3D scene. More... | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context)=0 |
Reads renderer's properties from given XML element. More... | |
virtual void | resolveReferences (const QgsProject &project) |
Resolves references to other objects - second phase of loading - after readXml() More... | |
virtual QString | type () const =0 |
Returns unique identifier of the renderer class (used to identify subclass) More... | |
virtual void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const =0 |
Writes renderer's properties to given XML element. More... | |
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).
Definition at line 48 of file qgsabstract3drenderer.h.
|
virtualdefault |
|
pure virtual |
Returns a cloned instance.
Implemented in QgsVectorLayer3DRenderer.
|
pure virtual |
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Implemented in QgsVectorLayer3DRenderer.
|
pure virtual |
Reads renderer's properties from given XML element.
Implemented in QgsVectorLayer3DRenderer.
|
virtual |
Resolves references to other objects - second phase of loading - after readXml()
Reimplemented in QgsVectorLayer3DRenderer.
Definition at line 19 of file qgsabstract3drenderer.cpp.
|
pure virtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implemented in QgsVectorLayer3DRenderer.
|
pure virtual |
Writes renderer's properties to given XML element.
Implemented in QgsVectorLayer3DRenderer.