20 #include <Qt3DRender/QRenderCapture>
30 Qt3DRender::QRenderCaptureReply *captureReply;
32 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [ = ]
35 captureReply->deleteLater();
void requestCaptureImage()
Starts a request for an image rendered by 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 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.
QgsShadowRenderingFrameGraph * mFrameGraph
bool renderCaptureEnabled() const
Returns whether it will be possible to render to an image.
Qt3DRender::QRenderCapture * renderCapture()
Returns the render capture object used to take an image of the scene.
void setRenderCaptureEnabled(bool enabled)
Sets whether it will be possible to render to an image.