QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSWINDOW3DENGINE_H
17 #define QGSWINDOW3DENGINE_H
32 class QForwardRenderer;
68 void setShadowRenderingEnabled(
bool enabled );
77 Qt3DRender::QCamera *
camera()
override;
78 QSize
size()
const override;
79 QSurface *
surface()
const override;
83 Qt3DExtras::Qt3DWindow *mWindow3D =
nullptr;
85 bool mShadowRenderingEnabled =
false;
87 Qt3DExtras::QForwardRenderer *mDefaultForwardRenderer =
nullptr;
88 Qt3DCore::QEntity *mRoot =
nullptr;
89 Qt3DCore::QEntity *mSceneRoot =
nullptr;
94 #endif // QGSWINDOW3DENGINE_H
bool shadowRenderingEnabled()
Returns whether shadow rendering is enabled.
virtual void setRootEntity(Qt3DCore::QEntity *root)=0
Sets root entity of the 3D scene.
virtual void setClearColor(const QColor &color)=0
Sets background color of the scene.
virtual QSize size() const =0
Returns size of the engine's rendering area in pixels.
3 Container class that holds different objects related to shadow rendering
QgsShadowRenderingFrameGraph * shadowRenderingFrameGraph()
Returns the frame graph object.
3 Base class for 3D engine implementation.
virtual Qt3DRender::QCamera * camera()=0
Returns pointer to the engine's camera entity.
virtual void setFrustumCullingEnabled(bool enabled)=0
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities ...
virtual void requestCaptureImage()=0
Starts a request for an image rendered by the engine.
virtual Qt3DRender::QRenderSettings * renderSettings()=0
Returns access to the engine's render settings (the frame graph can be accessed from here)
3 On-screen 3D engine: it creates OpenGL window (QWindow) and displays rendered 3D scene there.
3 Rectangular quad entity used for debugging depth maps
virtual QSurface * surface() const =0
Returns the surface of the engine.