|
QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
3 On-screen 3D engine: it creates OpenGL window (QWindow) and displays rendered 3D scene there. More...
#include <qgswindow3dengine.h>

Public Member Functions | |
| QgsWindow3DEngine () | |
| 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... | |
| QSize | size () const override |
| Returns size of the engine's rendering area in pixels. More... | |
| QWindow * | window () |
| Returns the internal 3D window where all the rendered output is displayed. 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 On-screen 3D engine: it creates OpenGL window (QWindow) and displays rendered 3D scene there.
The window can be embedded into a QWidget-based application with QWidget::createWindowContainer().
Definition at line 42 of file qgswindow3dengine.h.
| QgsWindow3DEngine::QgsWindow3DEngine | ( | ) |
Definition at line 23 of file qgswindow3dengine.cpp.
|
overridevirtual |
Returns pointer to the engine's camera entity.
Implements QgsAbstract3DEngine.
Definition at line 68 of file qgswindow3dengine.cpp.
|
overridevirtual |
Returns access to the engine's render settings (the frame graph can be accessed from here)
Implements QgsAbstract3DEngine.
Definition at line 63 of file qgswindow3dengine.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 37 of file qgswindow3dengine.cpp.
|
overridevirtual |
Sets background color of the scene.
Implements QgsAbstract3DEngine.
Definition at line 48 of file qgswindow3dengine.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 53 of file qgswindow3dengine.cpp.
|
overridevirtual |
Sets root entity of the 3D scene.
Implements QgsAbstract3DEngine.
Definition at line 58 of file qgswindow3dengine.cpp.
|
overridevirtual |
Returns size of the engine's rendering area in pixels.
Implements QgsAbstract3DEngine.
Definition at line 73 of file qgswindow3dengine.cpp.
| QWindow * QgsWindow3DEngine::window | ( | ) |
Returns the internal 3D window where all the rendered output is displayed.
Definition at line 32 of file qgswindow3dengine.cpp.
1.8.11