21#include <Qt3DRender/QRenderCapture>
22#include <Qt3DRender/QRenderSettings>
24#include "moc_qgsabstract3dengine.cpp"
33 Qt3DRender::QRenderCaptureReply *captureReply;
35 captureReply =
mFrameGraph->renderCapture()->requestCapture();
37 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [
this, captureReply] {
39 captureReply->deleteLater();
46 Qt3DRender::QRenderCaptureReply *captureReply;
47 captureReply =
mFrameGraph->depthRenderCapture()->requestCapture();
49 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [
this, captureReply] {
51 captureReply->deleteLater();
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.
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.
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.
#define QgsDebugMsgLevel(str, level)