QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
3 Off-screen 3D engine implementation. 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 | requestCaptureImage () override |
Starts a request for an image rendered by the engine. 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) |
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... | |
Additional Inherited Members | |
Signals inherited from QgsAbstract3DEngine | |
void | imageCaptured (const QImage &image) |
Emitted after a call to requestCaptureImage() to return the captured image. More... | |
3 Off-screen 3D engine implementation.
It is useful for recording rendered 3D scenes of arbitrary size.
Definition at line 64 of file qgsoffscreen3dengine.h.
QgsOffscreen3DEngine::QgsOffscreen3DEngine | ( | ) |
Definition at line 39 of file qgsoffscreen3dengine.cpp.
|
override |
Definition at line 101 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns pointer to the engine's camera entity.
Implements QgsAbstract3DEngine.
Definition at line 223 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 218 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Starts a request for an image rendered by the engine.
The function does not block - when the rendered image is captured, it is returned in imageCaptured() signal. Only one image request can be active at a time.
Implements QgsAbstract3DEngine.
Definition at line 238 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets background color of the scene.
Implements QgsAbstract3DEngine.
Definition at line 118 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 123 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Sets root entity of the 3D scene.
Implements QgsAbstract3DEngine.
Definition at line 205 of file qgsoffscreen3dengine.cpp.
void QgsOffscreen3DEngine::setSize | ( | QSize | s | ) |
Sets the size of the rendering area (in pixels)
Definition at line 107 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns size of the engine's rendering area in pixels.
Implements QgsAbstract3DEngine.
Definition at line 228 of file qgsoffscreen3dengine.cpp.
|
overridevirtual |
Returns the surface of the engine.
Implements QgsAbstract3DEngine.
Definition at line 233 of file qgsoffscreen3dengine.cpp.