17#include "moc_qgsabstract3dengine.cpp"
21#include <Qt3DRender/QRenderCapture>
22#include <Qt3DRender/QRenderSettings>
31 Qt3DRender::QRenderCaptureReply *captureReply;
34 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [=] {
36 captureReply->deleteLater();
42 Qt3DRender::QRenderCaptureReply *captureReply;
45 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [=] {
47 captureReply->deleteLater();
65 qDebug() <<
"FrameGraph:\n"
67 qDebug() <<
"SceneGraph:\n"
void requestCaptureImage()
Starts a request for an image rendered by the engine.
void requestDepthBufferCapture()
Starts a request for an image containing the depth buffer data of the engine.
void imageCaptured(const QImage &image)
Emitted after a call to requestCaptureImage() to return the captured image.
bool renderCaptureEnabled() const
Returns whether it will be possible to render to an image.
void depthBufferCaptured(const QImage &image)
Emitted after a call to requestDepthBufferCapture() to return the captured depth buffer.
QString dumpFrameGraph() const
Dump frame graph as string.
void setRenderCaptureEnabled(bool enabled)
Sets whether it will be possible to render to an image.
QgsAbstract3DEngine(QObject *parent=nullptr)
Constructor for QgsAbstract3DEngine with the specified parent object.
QgsFrameGraph * mFrameGraph
QString dumpSceneGraph() const
Dump scene graph as string.
void dumpFrameGraphToConsole() const
Dump the current frame graph and scene graph to the console.
bool renderCaptureEnabled() const
Returns whether it will be possible to render to an image.
QString dumpFrameGraph() const
Dumps frame graph as string.
void setRenderCaptureEnabled(bool enabled)
Sets whether it will be possible to render to an image.
Qt3DRender::QRenderCapture * depthRenderCapture()
Returns the render capture object used to take an image of the depth buffer of the scene.
QString dumpSceneGraph() const
Dumps scene graph as string.
Qt3DRender::QRenderCapture * renderCapture()
Returns the render capture object used to take an image of the scene.