QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsVectorLayer3DRenderer Class Reference

3D renderer that renders all features of a vector layer with the same 3D symbol. More...

#include <qgsvectorlayer3drenderer.h>

Inheritance diagram for QgsVectorLayer3DRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayer3DRenderer (QgsAbstract3DSymbol *s=nullptr)
 Takes ownership of the symbol object. More...
 
QgsVectorLayer3DRendererclone () 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...
 
void readXml (const QDomElement &elem, const QgsReadWriteContext &context) override
 Reads renderer's properties from given XML element. More...
 
void setSymbol (QgsAbstract3DSymbol *symbol)
 Sets 3D symbol associated with the renderer. Takes ownership of the symbol. More...
 
const QgsAbstract3DSymbolsymbol () 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 QgsAbstractVectorLayer3DRenderer
 QgsAbstractVectorLayer3DRenderer ()
 
QgsVectorLayerlayer () const
 Returns vector layer associated with the renderer. 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 setTilingSettings (const QgsVectorLayer3DTilingSettings &settings)
 Sets tiling settings of the renderer. More...
 
QgsVectorLayer3DTilingSettings tilingSettings () const
 Returns tiling settings of the renderer. More...
 
- Public Member Functions inherited from QgsAbstract3DRenderer
virtual ~QgsAbstract3DRenderer ()=default
 
virtual QgsAbstract3DRendererclone () 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...
 

Additional Inherited Members

- Protected Member Functions inherited from QgsAbstractVectorLayer3DRenderer
void copyBaseProperties (QgsAbstractVectorLayer3DRenderer *r) const
 Copies common properties of this object to another object. More...
 
void readXmlBaseProperties (const QDomElement &elem, const QgsReadWriteContext &context)
 Reads common properties of this object from DOM element. More...
 
void writeXmlBaseProperties (QDomElement &elem, const QgsReadWriteContext &context) const
 Writes common properties of this object to DOM element. More...
 
- Protected Member Functions inherited from QgsAbstract3DRenderer
 QgsAbstract3DRenderer ()=default
 Default constructor. More...
 

Detailed Description

3D renderer that renders all features of a vector layer with the same 3D symbol.

The appearance is completely defined by the symbol.

Since
QGIS 3.0

Definition at line 59 of file qgsvectorlayer3drenderer.h.

Constructor & Destructor Documentation

◆ QgsVectorLayer3DRenderer()

QgsVectorLayer3DRenderer::QgsVectorLayer3DRenderer ( QgsAbstract3DSymbol s = nullptr)
explicit

Takes ownership of the symbol object.

Definition at line 44 of file qgsvectorlayer3drenderer.cpp.

Member Function Documentation

◆ clone()

QgsVectorLayer3DRenderer * QgsVectorLayer3DRenderer::clone ( ) const
overridevirtual

Returns a cloned instance.

Implements QgsAbstract3DRenderer.

Definition at line 49 of file qgsvectorlayer3drenderer.cpp.

◆ createEntity()

Qt3DCore::QEntity * QgsVectorLayer3DRenderer::createEntity ( const Qgs3DMapSettings map) const
overridevirtual

Returns a 3D entity that will be used to show renderer's data in 3D scene.

Implements QgsAbstract3DRenderer.

Definition at line 66 of file qgsvectorlayer3drenderer.cpp.

◆ readXml()

void QgsVectorLayer3DRenderer::readXml ( const QDomElement &  elem,
const QgsReadWriteContext context 
)
overridevirtual

Reads renderer's properties from given XML element.

Implements QgsAbstract3DRenderer.

Definition at line 99 of file qgsvectorlayer3drenderer.cpp.

◆ setSymbol()

void QgsVectorLayer3DRenderer::setSymbol ( QgsAbstract3DSymbol symbol)

Sets 3D symbol associated with the renderer. Takes ownership of the symbol.

Definition at line 56 of file qgsvectorlayer3drenderer.cpp.

◆ symbol()

const QgsAbstract3DSymbol * QgsVectorLayer3DRenderer::symbol ( ) const

Returns 3D symbol associated with the renderer.

Definition at line 61 of file qgsvectorlayer3drenderer.cpp.

◆ type()

QString QgsVectorLayer3DRenderer::type ( ) const
inlineoverridevirtual

Returns unique identifier of the renderer class (used to identify subclass)

Implements QgsAbstract3DRenderer.

Definition at line 70 of file qgsvectorlayer3drenderer.h.

◆ writeXml()

void QgsVectorLayer3DRenderer::writeXml ( QDomElement &  elem,
const QgsReadWriteContext context 
) const
overridevirtual

Writes renderer's properties to given XML element.

Implements QgsAbstract3DRenderer.

Definition at line 84 of file qgsvectorlayer3drenderer.cpp.


The documentation for this class was generated from the following files: