QRenderCapture¶
Frame graph node for render capture. More…
Synopsis¶
Functions¶
def
requestCapture
()def
requestCapture
(captureId)def
requestCapture
(rect)
Detailed Description¶
The
QRenderCapture
is used to capture rendering into an image at any render stage. Capturing must be initiated by the user and one image is returned per capture request. User can issue multiple render capture requests simultaniously, but only one request is served perQRenderCapture
instance per frame.
- class PySide2.Qt3DRender.Qt3DRender.QRenderCapture([parent=None])¶
- param parent:
The constructor creates an instance with the specified
parent
.
- PySide2.Qt3DRender.Qt3DRender.QRenderCapture.requestCapture()¶
- Return type:
Used to request render capture. Only one render capture result is produced per
requestCapture
call even if the frame graph has multiple leaf nodes. The function returns aQRenderCaptureReply
object, which receives the captured image when it is done. The user is responsible for deallocating the returned object by calling deleterLater().
- PySide2.Qt3DRender.Qt3DRender.QRenderCapture.requestCapture(rect)
- Parameters:
rect –
PySide2.QtCore.QRect
- Return type:
- PySide2.Qt3DRender.Qt3DRender.QRenderCapture.requestCapture(captureId)
- Parameters:
captureId – int
- Return type:
Note
This function is deprecated.
Used to request render capture. User can specify a
captureId
to identify the request. The requestId does not have to be unique. Only one render capture result is produced per call even if the frame graph has multiple leaf nodes. The function returns aQRenderCaptureReply
object, which receives the captured image when it is done. The user is responsible for deallocating the returned object by callingdeleteLater()
.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.