QGIS API Documentation
3.6.0-Noosa (5873452)
|
3 Rule-based 3D renderer. More...
#include <qgsrulebased3drenderer.h>
Classes | |
class | Rule |
3 More... | |
Public Types | |
typedef QList< QgsRuleBased3DRenderer::Rule * > | RuleList |
typedef QMap< const QgsRuleBased3DRenderer::Rule *, QgsFeature3DHandler * > | RuleToHandlerMap |
Public Member Functions | |
QgsRuleBased3DRenderer (QgsRuleBased3DRenderer::Rule *root) | |
Construct renderer with the given root rule (takes ownership) More... | |
~QgsRuleBased3DRenderer () override | |
QgsRuleBased3DRenderer * | 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... | |
QgsRuleBased3DRenderer::Rule * | rootRule () |
Returns pointer to the root rule. More... | |
const Rule * | rootRule () const |
Returns pointer to the root rule. More... | |
void | setLayer (QgsVectorLayer *layer) |
Sets vector layer 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 |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstract3DRenderer | |
QgsAbstract3DRenderer ()=default | |
Default constructor. More... | |
3 Rule-based 3D renderer.
Similar to rule-based 2D renderer and rule-based labeling, it allows specification of rules for 3D symbols.
Definition at line 61 of file qgsrulebased3drenderer.h.
typedef QList<QgsRuleBased3DRenderer::Rule *> QgsRuleBased3DRenderer::RuleList |
Definition at line 65 of file qgsrulebased3drenderer.h.
typedef QMap<const QgsRuleBased3DRenderer::Rule *, QgsFeature3DHandler *> QgsRuleBased3DRenderer::RuleToHandlerMap |
Definition at line 67 of file qgsrulebased3drenderer.h.
QgsRuleBased3DRenderer::QgsRuleBased3DRenderer | ( | QgsRuleBased3DRenderer::Rule * | root | ) |
Construct renderer with the given root rule (takes ownership)
Definition at line 372 of file qgsrulebased3drenderer.cpp.
|
override |
Definition at line 377 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Returns a cloned instance.
Implements QgsAbstract3DRenderer.
Definition at line 382 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Implements QgsAbstract3DRenderer.
Definition at line 410 of file qgsrulebased3drenderer.cpp.
QgsVectorLayer * QgsRuleBased3DRenderer::layer | ( | ) | const |
Returns vector layer associated with the renderer.
Definition at line 405 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Reads renderer's properties from given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 462 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Resolves references to other objects - second phase of loading - after readXml()
Reimplemented from QgsAbstract3DRenderer.
Definition at line 470 of file qgsrulebased3drenderer.cpp.
|
inline |
Returns pointer to the root rule.
Definition at line 305 of file qgsrulebased3drenderer.h.
|
inline |
Returns pointer to the root rule.
Definition at line 307 of file qgsrulebased3drenderer.h.
void QgsRuleBased3DRenderer::setLayer | ( | QgsVectorLayer * | layer | ) |
Sets vector layer associated with the renderer.
Definition at line 400 of file qgsrulebased3drenderer.cpp.
|
inlineoverridevirtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implements QgsAbstract3DRenderer.
Definition at line 309 of file qgsrulebased3drenderer.h.
|
overridevirtual |
Writes renderer's properties to given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 451 of file qgsrulebased3drenderer.cpp.