QGIS API Documentation
3.2.0-Bonn (bc43194)
|
3D renderer that renders all features of a vector layer with the same 3D symbol. More...
#include <qgsvectorlayer3drenderer.h>
Public Member Functions | |
QgsVectorLayer3DRenderer (QgsAbstract3DSymbol *s=nullptr) | |
Takes ownership of the symbol object. More... | |
QgsVectorLayer3DRenderer * | clone () const override |
Returns a cloned instance. More... | |
Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map) const override |
Returns a 3D entity that will be used to show renderer's data in 3D scene. More... | |
QgsVectorLayer * | layer () const |
Returns vector layer associated with the renderer. More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
Reads renderer's properties from given XML element. More... | |
void | resolveReferences (const QgsProject &project) override |
Resolves references to other objects - second phase of loading - after readXml() More... | |
void | setLayer (QgsVectorLayer *layer) |
Sets vector layer associated with the renderer. More... | |
void | setSymbol (QgsAbstract3DSymbol *symbol) |
Sets 3D symbol associated with the renderer. Takes ownership of the symbol. More... | |
const QgsAbstract3DSymbol * | symbol () const |
Returns 3D symbol associated with the renderer. More... | |
QString | type () const override |
Returns unique identifier of the renderer class (used to identify subclass) More... | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
Writes renderer's properties to given XML element. More... | |
Public Member Functions inherited from QgsAbstract3DRenderer | |
virtual | ~QgsAbstract3DRenderer ()=default |
3D renderer that renders all features of a vector layer with the same 3D symbol.
The appearance is completely defined by the symbol.
Definition at line 56 of file qgsvectorlayer3drenderer.h.
|
explicit |
Takes ownership of the symbol object.
Definition at line 45 of file qgsvectorlayer3drenderer.cpp.
|
overridevirtual |
Returns a cloned instance.
Implements QgsAbstract3DRenderer.
Definition at line 50 of file qgsvectorlayer3drenderer.cpp.
|
overridevirtual |
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Implements QgsAbstract3DRenderer.
Definition at line 77 of file qgsvectorlayer3drenderer.cpp.
QgsVectorLayer * QgsVectorLayer3DRenderer::layer | ( | ) | const |
Returns vector layer associated with the renderer.
Definition at line 62 of file qgsvectorlayer3drenderer.cpp.
|
overridevirtual |
Reads renderer's properties from given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 109 of file qgsvectorlayer3drenderer.cpp.
|
overridevirtual |
Resolves references to other objects - second phase of loading - after readXml()
Reimplemented from QgsAbstract3DRenderer.
Definition at line 128 of file qgsvectorlayer3drenderer.cpp.
void QgsVectorLayer3DRenderer::setLayer | ( | QgsVectorLayer * | layer | ) |
Sets vector layer associated with the renderer.
Definition at line 57 of file qgsvectorlayer3drenderer.cpp.
void QgsVectorLayer3DRenderer::setSymbol | ( | QgsAbstract3DSymbol * | symbol | ) |
Sets 3D symbol associated with the renderer. Takes ownership of the symbol.
Definition at line 67 of file qgsvectorlayer3drenderer.cpp.
const QgsAbstract3DSymbol * QgsVectorLayer3DRenderer::symbol | ( | ) | const |
Returns 3D symbol associated with the renderer.
Definition at line 72 of file qgsvectorlayer3drenderer.cpp.
|
inlineoverridevirtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implements QgsAbstract3DRenderer.
Definition at line 72 of file qgsvectorlayer3drenderer.h.
|
overridevirtual |
Writes renderer's properties to given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 94 of file qgsvectorlayer3drenderer.cpp.