QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3D renderer that renders all points from a point cloud layer More...
#include <qgspointcloudlayer3drenderer.h>
Public Member Functions | |
QgsPointCloudLayer3DRenderer () | |
Takes ownership of the symbol object. More... | |
QgsPointCloudLayer3DRenderer * | clone () const override |
Returns a cloned instance. More... | |
bool | convertFrom2DRenderer (QgsPointCloudRenderer *renderer) override |
Updates the 3D renderer's symbol to match that of a given QgsPointCloudRenderer. 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... | |
QgsPointCloudLayer * | layer () const |
Returns point cloud layer associated with the renderer. More... | |
double | maximumScreenError () const |
Returns the maximum screen error allowed when rendering the point cloud. More... | |
int | pointRenderingBudget () const |
Returns the maximum number of points that will be rendered to the scene. 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 (QgsPointCloudLayer *layer) |
Sets point cloud layer associated with the renderer. More... | |
void | setMaximumScreenError (double error) |
Sets the maximum screen error allowed when rendering the point cloud. More... | |
void | setPointRenderingBudget (int budget) |
Sets the maximum number of points to be rendered in the scene. More... | |
void | setShowBoundingBoxes (bool showBoundingBoxes) |
Sets whether bounding boxes will be visible when rendering the point cloud. More... | |
void | setSymbol (QgsPointCloud3DSymbol *symbol) |
Sets the 3D symbol associated with the renderer. More... | |
bool | showBoundingBoxes () const |
Returns whether bounding boxes will be visible when rendering the point cloud. More... | |
const QgsPointCloud3DSymbol * | symbol () 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 QgsAbstractPointCloud3DRenderer | |
virtual | ~QgsAbstractPointCloud3DRenderer ()=default |
Default destructor. More... | |
virtual bool | convertFrom2DRenderer (QgsPointCloudRenderer *renderer)=0 |
Updates the 3D renderer's symbol to match that of a given QgsPointCloudRenderer. More... | |
Public Member Functions inherited from QgsAbstract3DRenderer | |
virtual | ~QgsAbstract3DRenderer ()=default |
virtual QgsAbstract3DRenderer * | clone () 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 QgsAbstractPointCloud3DRenderer | |
QgsAbstractPointCloud3DRenderer ()=default | |
Default constructor. More... | |
Protected Member Functions inherited from QgsAbstract3DRenderer | |
QgsAbstract3DRenderer ()=default | |
Default constructor. More... | |
3D renderer that renders all points from a point cloud layer
Definition at line 230 of file qgspointcloudlayer3drenderer.h.
|
explicit |
Takes ownership of the symbol object.
Definition at line 96 of file qgspointcloudlayer3drenderer.cpp.
|
overridevirtual |
Returns a cloned instance.
Implements QgsAbstract3DRenderer.
Definition at line 115 of file qgspointcloudlayer3drenderer.cpp.
|
overridevirtual |
Updates the 3D renderer's symbol to match that of a given QgsPointCloudRenderer.
true
on success, false
otherwise Implements QgsAbstractPointCloud3DRenderer.
Definition at line 225 of file qgspointcloudlayer3drenderer.cpp.
|
overridevirtual |
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Implements QgsAbstract3DRenderer.
Definition at line 128 of file qgspointcloudlayer3drenderer.cpp.
QgsPointCloudLayer * QgsPointCloudLayer3DRenderer::layer | ( | ) | const |
Returns point cloud layer associated with the renderer.
Definition at line 105 of file qgspointcloudlayer3drenderer.cpp.
double QgsPointCloudLayer3DRenderer::maximumScreenError | ( | ) | const |
Returns the maximum screen error allowed when rendering the point cloud.
Larger values result in a faster render with less points rendered.
Definition at line 200 of file qgspointcloudlayer3drenderer.cpp.
|
inline |
Returns the maximum number of points that will be rendered to the scene.
Definition at line 293 of file qgspointcloudlayer3drenderer.h.
|
overridevirtual |
Reads renderer's properties from given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 169 of file qgspointcloudlayer3drenderer.cpp.
|
overridevirtual |
Resolves references to other objects - second phase of loading - after readXml()
Reimplemented from QgsAbstract3DRenderer.
Definition at line 195 of file qgspointcloudlayer3drenderer.cpp.
void QgsPointCloudLayer3DRenderer::setLayer | ( | QgsPointCloudLayer * | layer | ) |
Sets point cloud layer associated with the renderer.
Definition at line 100 of file qgspointcloudlayer3drenderer.cpp.
void QgsPointCloudLayer3DRenderer::setMaximumScreenError | ( | double | error | ) |
Sets the maximum screen error allowed when rendering the point cloud.
Larger values result in a faster render with less points rendered.
Definition at line 205 of file qgspointcloudlayer3drenderer.cpp.
void QgsPointCloudLayer3DRenderer::setPointRenderingBudget | ( | int | budget | ) |
Sets the maximum number of points to be rendered in the scene.
Definition at line 220 of file qgspointcloudlayer3drenderer.cpp.
void QgsPointCloudLayer3DRenderer::setShowBoundingBoxes | ( | bool | showBoundingBoxes | ) |
Sets whether bounding boxes will be visible when rendering the point cloud.
Definition at line 215 of file qgspointcloudlayer3drenderer.cpp.
void QgsPointCloudLayer3DRenderer::setSymbol | ( | QgsPointCloud3DSymbol * | symbol | ) |
Sets the 3D symbol associated with the renderer.
Ownership of symbol is transferred to the renderer.
Definition at line 144 of file qgspointcloudlayer3drenderer.cpp.
bool QgsPointCloudLayer3DRenderer::showBoundingBoxes | ( | ) | const |
Returns whether bounding boxes will be visible when rendering the point cloud.
Definition at line 210 of file qgspointcloudlayer3drenderer.cpp.
|
inline |
Returns 3D symbol associated with the renderer.
Definition at line 252 of file qgspointcloudlayer3drenderer.h.
|
overridevirtual |
Returns unique identifier of the renderer class (used to identify subclass)
Implements QgsAbstract3DRenderer.
Definition at line 110 of file qgspointcloudlayer3drenderer.cpp.
|
overridevirtual |
Writes renderer's properties to given XML element.
Implements QgsAbstract3DRenderer.
Definition at line 149 of file qgspointcloudlayer3drenderer.cpp.