QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
3D renderer that renders all mesh triangles of a mesh layer. More...
#include <qgsmeshlayer3drenderer.h>
Public Member Functions | |
QgsMeshLayer3DRenderer (QgsMesh3DSymbol *s=nullptr) | |
Takes ownership of the symbol object. | |
QgsMeshLayer3DRenderer * | clone () const override |
Returns a cloned instance. | |
Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map) const override |
Returns a 3D entity that will be used to show renderer's data in 3D scene. | |
QgsMeshLayer * | layer () const |
Returns mesh layer associated with the renderer. | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
Reads renderer's properties from given XML element. | |
void | resolveReferences (const QgsProject &project) override |
Resolves references to other objects - second phase of loading - after readXml() | |
void | setLayer (QgsMeshLayer *layer) |
Sets vector layer associated with the renderer. | |
void | setSymbol (QgsMesh3DSymbol *symbol) |
Sets 3D symbol associated with the renderer. | |
const QgsMesh3DSymbol * | symbol () const |
Returns 3D symbol associated with the renderer. | |
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 QgsAbstract3DRenderer | |
virtual | ~QgsAbstract3DRenderer ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstract3DRenderer | |
QgsAbstract3DRenderer ()=default | |
Default constructor. | |
3D renderer that renders all mesh triangles of a mesh layer.
Definition at line 59 of file qgsmeshlayer3drenderer.h.
|
explicit |
Takes ownership of the symbol object.
Definition at line 40 of file qgsmeshlayer3drenderer.cpp.
|
overridevirtual |
Returns a cloned instance.
Implements QgsAbstract3DRenderer.
Definition at line 45 of file qgsmeshlayer3drenderer.cpp.
|
overridevirtual |
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Implements QgsAbstract3DRenderer.
Definition at line 72 of file qgsmeshlayer3drenderer.cpp.
QgsMeshLayer * QgsMeshLayer3DRenderer::layer | ( | ) | const |
Returns mesh layer associated with the renderer.
Definition at line 57 of file qgsmeshlayer3drenderer.cpp.
|
overridevirtual |
Reads renderer's properties from given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 116 of file qgsmeshlayer3drenderer.cpp.
|
overridevirtual |
Resolves references to other objects - second phase of loading - after readXml()
Reimplemented from QgsAbstract3DRenderer.
Definition at line 126 of file qgsmeshlayer3drenderer.cpp.
void QgsMeshLayer3DRenderer::setLayer | ( | QgsMeshLayer * | layer | ) |
Sets vector layer associated with the renderer.
Definition at line 52 of file qgsmeshlayer3drenderer.cpp.
void QgsMeshLayer3DRenderer::setSymbol | ( | QgsMesh3DSymbol * | symbol | ) |
Sets 3D symbol associated with the renderer.
Definition at line 62 of file qgsmeshlayer3drenderer.cpp.
const QgsMesh3DSymbol * QgsMeshLayer3DRenderer::symbol | ( | ) | const |
Returns 3D symbol associated with the renderer.
Definition at line 67 of file qgsmeshlayer3drenderer.cpp.
|
inlineoverridevirtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implements QgsAbstract3DRenderer.
Definition at line 75 of file qgsmeshlayer3drenderer.h.
|
overridevirtual |
Writes renderer's properties to given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 101 of file qgsmeshlayer3drenderer.cpp.