QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
20 #include <Qt3DRender/QRenderCapture>
21 #include <Qt3DRender/QRenderSettings>
31 Qt3DRender::QRenderCaptureReply *captureReply;
34 this->
renderSettings()->setRenderPolicy( Qt3DRender::QRenderSettings::RenderPolicy::Always );
35 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [ = ]
38 this->
renderSettings()->setRenderPolicy( Qt3DRender::QRenderSettings::RenderPolicy::OnDemand );
39 captureReply->deleteLater();
45 Qt3DRender::QRenderCaptureReply *captureReply;
48 this->
renderSettings()->setRenderPolicy( Qt3DRender::QRenderSettings::RenderPolicy::Always );
49 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [ = ]
52 this->
renderSettings()->setRenderPolicy( Qt3DRender::QRenderSettings::RenderPolicy::OnDemand );
53 captureReply->deleteLater();
QgsShadowRenderingFrameGraph * mFrameGraph
void depthBufferCaptured(const QImage &image)
Emitted after a call to requestDepthBufferCapture() to return the captured depth buffer.
void imageCaptured(const QImage &image)
Emitted after a call to requestCaptureImage() to return the captured image.
QgsAbstract3DEngine(QObject *parent=nullptr)
Constructor for QgsAbstract3DEngine with the specified parent object.
void requestDepthBufferCapture()
Starts a request for an image containing the depth buffer data of the engine.
Qt3DRender::QRenderCapture * renderCapture()
Returns the render capture object used to take an image of the scene.
void requestCaptureImage()
Starts a request for an image rendered by the engine.
Qt3DRender::QRenderCapture * depthRenderCapture()
Returns the render capture object used to take an image of the depth buffer of the scene.
void setRenderCaptureEnabled(bool enabled)
Sets whether it will be possible to render to an image.
virtual Qt3DRender::QRenderSettings * renderSettings()=0
Returns access to the engine's render settings (the frame graph can be accessed from here)
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.
bool renderCaptureEnabled() const
Returns whether it will be possible to render to an image.