QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
3 More...
#include <qgsrulebased3drenderer.h>
Classes | |
class | Rule |
3 More... | |
Public Types | |
typedef QList< QgsRuleBased3DRenderer::Rule * > | RuleList |
typedef QHash< const QgsRuleBased3DRenderer::Rule *, QgsFeature3DHandler * > | RuleToHandlerMap |
Public Member Functions | |
QgsRuleBased3DRenderer (QgsRuleBased3DRenderer::Rule *root) | |
Construct renderer with the given root rule (takes ownership) | |
~QgsRuleBased3DRenderer () override | |
QgsRuleBased3DRenderer * | clone () const override |
Returns a cloned instance. | |
Qt3DCore::QEntity * | createEntity (Qgs3DMapSettings *map) const override |
Returns a 3D entity that will be used to show renderer's data in 3D scene. | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
Reads renderer's properties from given XML element. | |
QgsRuleBased3DRenderer::Rule * | rootRule () |
Returns pointer to the root rule. | |
const Rule * | rootRule () const |
Returns pointer to the root rule. | |
QString | type () const 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. | |
Public Member Functions inherited from QgsAbstractVectorLayer3DRenderer | |
QgsAbstractVectorLayer3DRenderer () | |
QgsVectorLayer * | layer () const |
Returns vector layer associated with the renderer. | |
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 | setTilingSettings (const QgsVectorLayer3DTilingSettings &settings) |
Sets tiling settings of the renderer. | |
QgsVectorLayer3DTilingSettings | tilingSettings () const |
Returns tiling settings of the renderer. | |
Public Member Functions inherited from QgsAbstract3DRenderer | |
virtual | ~QgsAbstract3DRenderer ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstractVectorLayer3DRenderer | |
void | copyBaseProperties (QgsAbstractVectorLayer3DRenderer *r) const |
Copies common properties of this object to another object. | |
void | readXmlBaseProperties (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads common properties of this object from DOM element. | |
void | writeXmlBaseProperties (QDomElement &elem, const QgsReadWriteContext &context) const |
Writes common properties of this object to DOM element. | |
Protected Member Functions inherited from QgsAbstract3DRenderer | |
QgsAbstract3DRenderer ()=default | |
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 66 of file qgsrulebased3drenderer.h.
typedef QHash<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 353 of file qgsrulebased3drenderer.cpp.
|
override |
Definition at line 358 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Returns a cloned instance.
Implements QgsAbstract3DRenderer.
Definition at line 363 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 381 of file qgsrulebased3drenderer.cpp.
|
overridevirtual |
Reads renderer's properties from given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 410 of file qgsrulebased3drenderer.cpp.
|
inline |
Returns pointer to the root rule.
Definition at line 298 of file qgsrulebased3drenderer.h.
|
inline |
Returns pointer to the root rule.
Definition at line 300 of file qgsrulebased3drenderer.h.
|
inlineoverridevirtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implements QgsAbstract3DRenderer.
Definition at line 302 of file qgsrulebased3drenderer.h.
|
overridevirtual |
Writes renderer's properties to given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 399 of file qgsrulebased3drenderer.cpp.