Qt3DRender::QRenderCapture Class
class Qt3DRender::QRenderCaptureNodo del grafico dei fotogrammi per l'acquisizione del rendering. Altro...
| Intestazione: | #include <Qt3DRender/QRenderCapture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | RenderCapture |
| Eredita da: | Qt3DRender::QFrameGraphNode |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Funzioni pubbliche
| QRenderCapture(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DRender::QRenderCaptureReply * | requestCapture() |
| Qt3DRender::QRenderCaptureReply * | requestCapture(const QRect &rect) |
Descrizione dettagliata
QRenderCapture viene utilizzato per acquisire il rendering in un'immagine in qualsiasi fase del rendering. L'acquisizione deve essere avviata dall'utente e per ogni richiesta di acquisizione viene restituita un'immagine. L'utente può inviare più richieste di acquisizione del rendering contemporaneamente, ma per ogni istanza di QRenderCapture viene elaborata una sola richiesta per fotogramma.
Documentazione delle funzioni membro
[explicit] QRenderCapture::QRenderCapture(Qt3DCore::QNode *parent = nullptr)
Il costruttore crea un'istanza con l'parent e specificata.
[invokable] Qt3DRender::QRenderCaptureReply *QRenderCapture::requestCapture()
Utilizzata per richiedere l'acquisizione del rendering. Per ogni chiamata a requestCapture viene generato un solo risultato di acquisizione del rendering, anche se il grafico dei fotogrammi presenta più nodi foglia. La funzione restituisce un oggetto QRenderCaptureReply, che riceve l'immagine acquisita al termine dell'operazione. L'utente è responsabile della deallocazione dell'oggetto restituito chiamando deleterLater().
Nota: questa funzione può essere richiamata tramite il sistema dei meta-oggetti e da QML. Vedi Q_INVOKABLE.
[invokable] Qt3DRender::QRenderCaptureReply *QRenderCapture::requestCapture(const QRect &rect)
Utilizzata per richiedere l'acquisizione del rendering da un oggetto ` rect` specificato. Per ogni chiamata a `requestCapture` viene generato un solo risultato di acquisizione del rendering, anche se il grafico dei fotogrammi presenta più nodi foglia. La funzione restituisce un oggetto `QRenderCaptureReply`, che riceve l'immagine acquisita al termine dell'operazione. L'utente è responsabile della deallocazione dell'oggetto restituito chiamando ` deleteLater()`.
Nota: questa funzione può essere invocata tramite il sistema dei meta-oggetti e da QML. Vedi Q_INVOKABLE.
© 2026 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.