QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Public Member Functions | List of all members
QgsMeshLayer3DRenderer Class Reference

3D renderer that renders all mesh triangles of a mesh layer. More...

#include <qgsmeshlayer3drenderer.h>

Inheritance diagram for QgsMeshLayer3DRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshLayer3DRenderer (QgsMesh3DSymbol *s=nullptr)
 Takes ownership of the symbol object. More...
 
QgsMeshLayer3DRendererclone () 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...
 
QgsMeshLayerlayer () const
 Returns mesh 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 (QgsMeshLayer *layer)
 Sets vector layer associated with the renderer. More...
 
void setSymbol (QgsMesh3DSymbol *symbol)
 Sets 3D symbol associated with the renderer. More...
 
const QgsMesh3DSymbolsymbol () 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
 

Additional Inherited Members

- Protected Member Functions inherited from QgsAbstract3DRenderer
 QgsAbstract3DRenderer ()=default
 Default constructor. More...
 

Detailed Description

3D renderer that renders all mesh triangles of a mesh layer.

Since
QGIS 3.6

Definition at line 59 of file qgsmeshlayer3drenderer.h.

Constructor & Destructor Documentation

◆ QgsMeshLayer3DRenderer()

QgsMeshLayer3DRenderer::QgsMeshLayer3DRenderer ( QgsMesh3DSymbol s = nullptr)
explicit

Takes ownership of the symbol object.

Definition at line 41 of file qgsmeshlayer3drenderer.cpp.

Member Function Documentation

◆ clone()

QgsMeshLayer3DRenderer * QgsMeshLayer3DRenderer::clone ( ) const
overridevirtual

Returns a cloned instance.

Implements QgsAbstract3DRenderer.

Definition at line 46 of file qgsmeshlayer3drenderer.cpp.

◆ createEntity()

Qt3DCore::QEntity * QgsMeshLayer3DRenderer::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 73 of file qgsmeshlayer3drenderer.cpp.

◆ layer()

QgsMeshLayer * QgsMeshLayer3DRenderer::layer ( ) const

Returns mesh layer associated with the renderer.

Definition at line 58 of file qgsmeshlayer3drenderer.cpp.

◆ readXml()

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

Reads renderer's properties from given XML element.

Implements QgsAbstract3DRenderer.

Definition at line 115 of file qgsmeshlayer3drenderer.cpp.

◆ resolveReferences()

void QgsMeshLayer3DRenderer::resolveReferences ( const QgsProject project)
overridevirtual

Resolves references to other objects - second phase of loading - after readXml()

Reimplemented from QgsAbstract3DRenderer.

Definition at line 125 of file qgsmeshlayer3drenderer.cpp.

◆ setLayer()

void QgsMeshLayer3DRenderer::setLayer ( QgsMeshLayer layer)

Sets vector layer associated with the renderer.

Definition at line 53 of file qgsmeshlayer3drenderer.cpp.

◆ setSymbol()

void QgsMeshLayer3DRenderer::setSymbol ( QgsMesh3DSymbol symbol)

Sets 3D symbol associated with the renderer.

Definition at line 63 of file qgsmeshlayer3drenderer.cpp.

◆ symbol()

const QgsMesh3DSymbol * QgsMeshLayer3DRenderer::symbol ( ) const

Returns 3D symbol associated with the renderer.

Definition at line 68 of file qgsmeshlayer3drenderer.cpp.

◆ type()

QString QgsMeshLayer3DRenderer::type ( ) const
inlineoverridevirtual

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

Implements QgsAbstract3DRenderer.

Definition at line 75 of file qgsmeshlayer3drenderer.h.

◆ writeXml()

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

Writes renderer's properties to given XML element.

Implements QgsAbstract3DRenderer.

Definition at line 100 of file qgsmeshlayer3drenderer.cpp.


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