16#ifndef QGSWINDOW3DENGINE_H
17#define QGSWINDOW3DENGINE_H
25 class QForwardRenderer;
58 Qt3DCore::QEntity *
root()
const;
65 Qt3DRender::QCamera *
camera()
override;
66 QSize
size()
const override;
67 QSurface *
surface()
const override;
69 void setSize( QSize s )
override;
75 Qt3DCore::QEntity *mRoot =
nullptr;
76 Qt3DCore::QEntity *mSceneRoot =
nullptr;
78 QSize mSize = QSize( 1024, 768 );
Convenience wrapper to simplify the creation of a 3D window ready to be used with QGIS.
virtual QSurface * surface() const =0
Returns the surface of the engine.
virtual Qt3DRender::QCamera * camera()=0
Returns pointer to the engine's camera entity.
QgsAbstract3DEngine(QObject *parent=nullptr)
Constructor for QgsAbstract3DEngine with the specified parent object.
virtual void setClearColor(const QColor &color)=0
Sets background color of the scene.
virtual void setSize(QSize s)=0
Sets the size of the rendering area (in pixels).
virtual void setFrustumCullingEnabled(bool enabled)=0
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities ...
virtual void setRootEntity(Qt3DCore::QEntity *root)=0
Sets root entity of the 3D scene.
virtual QSize size() const =0
Returns size of the engine's rendering area in pixels.
virtual Qt3DRender::QRenderSettings * renderSettings()=0
Returns access to the engine's render settings (the frame graph can be accessed from here).
QgsWindow3DEngine(Qgs3DMapCanvas *parent)
Constructor for QgsWindow3DEngine with the specified parent Qgs3DMapCanvas.
Qt3DCore::QEntity * root() const
Returns the root entity.
QWindow * window()
Returns the internal 3D window where all the rendered output is displayed.