QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgsoffscreen3dengine.h>
Public Member Functions | |
QgsOffscreen3DEngine () | |
~QgsOffscreen3DEngine () override | |
Qt3DRender::QCamera * | camera () override |
Returns pointer to the engine's camera entity. More... | |
Qt3DRender::QRenderSettings * | renderSettings () override |
Returns access to the engine's render settings (the frame graph can be accessed from here) More... | |
void | setClearColor (const QColor &color) override |
Sets background color of the scene. More... | |
void | setFrustumCullingEnabled (bool enabled) override |
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities outside of camera's view) More... | |
void | setRootEntity (Qt3DCore::QEntity *root) override |
Sets root entity of the 3D scene. More... | |
void | setSize (QSize s) override |
Sets the size of the rendering area (in pixels) More... | |
QSize | size () const override |
Returns size of the engine's rendering area in pixels. More... | |
QSurface * | surface () const override |
Returns the surface of the engine. More... | |
Public Member Functions inherited from QgsAbstract3DEngine | |
QgsAbstract3DEngine (QObject *parent=nullptr) | |
Constructor for QgsAbstract3DEngine with the specified parent object. More... | |
virtual Qt3DRender::QCamera * | camera ()=0 |
Returns pointer to the engine's camera entity. More... | |
QgsShadowRenderingFrameGraph * | frameGraph () |
Returns the shadow rendering frame graph object used to render the scene. More... | |
bool | renderCaptureEnabled () const |
Returns whether it will be possible to render to an image. More... | |
virtual Qt3DRender::QRenderSettings * | renderSettings ()=0 |
Returns access to the engine's render settings (the frame graph can be accessed from here) More... | |
void | requestCaptureImage () |
Starts a request for an image rendered by the engine. More... | |
void | requestDepthBufferCapture () |
Starts a request for an image containing the depth buffer data of the engine. More... | |
virtual void | setClearColor (const QColor &color)=0 |
Sets background color of the scene. More... | |
virtual void | setFrustumCullingEnabled (bool enabled)=0 |
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities outside of camera's view) More... | |
void | setRenderCaptureEnabled (bool enabled) |
Sets whether it will be possible to render to an image. More... | |
virtual void | setRootEntity (Qt3DCore::QEntity *root)=0 |
Sets root entity of the 3D scene. More... | |
virtual void | setSize (QSize s)=0 |
Sets the size of the rendering area (in pixels) More... | |
virtual QSize | size () const =0 |
Returns size of the engine's rendering area in pixels. More... | |
virtual QSurface * | surface () const =0 |
Returns the surface of the engine. More... | |
Additional Inherited Members | |
Signals inherited from QgsAbstract3DEngine | |
void | depthBufferCaptured (const QImage &image) |
Emitted after a call to requestDepthBufferCapture() to return the captured depth buffer. More... | |
void | imageCaptured (const QImage &image) |
Emitted after a call to requestCaptureImage() to return the captured image. More... | |
Protected Attributes inherited from QgsAbstract3DEngine | |
QgsShadowRenderingFrameGraph * | mFrameGraph = nullptr |
3
Off-screen 3D engine implementation. It is useful for recording rendered 3D scenes of arbitrary size.
Definition at line 66 of file qgsoffscreen3dengine.h.
QgsOffscreen3DEngine::QgsOffscreen3DEngine | ( | ) |
Definition at line 38 of file qgsoffscreen3dengine.cpp.
|
override |
Definition at line 111 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns pointer to the engine's camera entity.
Implements QgsAbstract3DEngine.
Definition at line 155 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns access to the engine's render settings (the frame graph can be accessed from here)
Implements QgsAbstract3DEngine.
Definition at line 150 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets background color of the scene.
Implements QgsAbstract3DEngine.
Definition at line 125 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities outside of camera's view)
Implements QgsAbstract3DEngine.
Definition at line 130 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets root entity of the 3D scene.
Implements QgsAbstract3DEngine.
Definition at line 135 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets the size of the rendering area (in pixels)
Implements QgsAbstract3DEngine.
Definition at line 117 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns size of the engine's rendering area in pixels.
Implements QgsAbstract3DEngine.
Definition at line 160 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns the surface of the engine.
Implements QgsAbstract3DEngine.
Definition at line 165 of file qgsoffscreen3dengine.cpp.