Qt3DRender::QBlitFramebuffer Class
class Qt3DRender::QBlitFramebufferNodo FrameGraph che consente di trasferire un rettangolo di valori di pixel da una regione a un'altra di un render target. Altro...
| Intestazione: | #include <qblitframebuffer.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | BlitFramebuffer |
| Eredita da: | Qt3DRender::QFrameGraphNode |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Tipi pubblici
| enum | InterpolationMethod { Nearest, Linear } |
Proprietà
|
|
Funzioni pubbliche
| QBlitFramebuffer(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QBlitFramebuffer() |
| Qt3DRender::QRenderTarget * | destination() const |
| Qt3DRender::QRenderTargetOutput::AttachmentPoint | destinationAttachmentPoint() const |
| QRectF | destinationRect() const |
| Qt3DRender::QBlitFramebuffer::InterpolationMethod | interpolationMethod() const |
| void | setDestination(Qt3DRender::QRenderTarget *destination) |
| void | setDestinationAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint destinationAttachmentPoint) |
| void | setDestinationRect(const QRectF &outputRect) |
| void | setInterpolationMethod(Qt3DRender::QBlitFramebuffer::InterpolationMethod interpolationMethod) |
| void | setSource(Qt3DRender::QRenderTarget *source) |
| void | setSourceAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint sourceAttachmentPoint) |
| void | setSourceRect(const QRectF &inputRect) |
| Qt3DRender::QRenderTarget * | source() const |
| Qt3DRender::QRenderTargetOutput::AttachmentPoint | sourceAttachmentPoint() const |
| QRectF | sourceRect() const |
Segnali
| void | destinationAttachmentPointChanged() |
| void | destinationChanged() |
| void | destinationRectChanged() |
| void | interpolationMethodChanged() |
| void | sourceAttachmentPointChanged() |
| void | sourceChanged() |
| void | sourceRectChanged() |
Descrizione dettagliata
Questo nodo inserisce un glBlitFrameBuffer o un equivalente nel flusso di comandi. Ciò fornisce un metodo più efficiente per copiare rettangoli tra texture o backbuffer di superficie gestiti d QRenderTarget, rispetto al disegno di quadrilateri con texture. Supporta inoltre il ridimensionamento con il metodo di interpolazione specificato.
Nota: in pratica, il nodo QBlitFramebuffer verrà spesso utilizzato in combinazione con QNoDraw, poiché un blit non dovrebbe comportare l'emissione di chiamate di disegno per alcuna entità.
Documentazione sui tipi dei membri
enum QBlitFramebuffer::InterpolationMethod
Specifica l'interpolazione applicata in caso di allungamento dell'immagine.
| Costante | Valore | Descrizione |
|---|---|---|
Qt3DRender::QBlitFramebuffer::Nearest | 0 | Interpolazione del vicino più prossimo. |
Qt3DRender::QBlitFramebuffer::Linear | 1 | Interpolazione lineare. |
Documentazione delle proprietà
destination : Qt3DRender::QRenderTarget*
Specifica il target di rendering di destinazione. Se non viene specificato, si presume che la destinazione sia il framebuffer predefinito (ovvero il backbuffer della superficie corrente), se presente.
Nota: la sorgente e la destinazione non devono riferirsi allo stesso target di rendering.
Funzioni di accesso:
| Qt3DRender::QRenderTarget * | destination() const |
| void | setDestination(Qt3DRender::QRenderTarget *destination) |
Segnale di notifica:
| void | destinationChanged() |
destinationAttachmentPoint : Qt3DRender::QRenderTargetOutput::AttachmentPoint
Specifica il punto di fissaggio di destinazione.
Funzioni di accesso:
| Qt3DRender::QRenderTargetOutput::AttachmentPoint | destinationAttachmentPoint() const |
| void | setDestinationAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint destinationAttachmentPoint) |
Segnale di notifica:
| void | destinationAttachmentPointChanged() |
destinationRect : QRectF
Specifica il rettangolo di destinazione. Si presume che le coordinate seguano il normale sistema di coordinate Qt, ovvero che l'asse Y vada dall'alto verso il basso.
Funzioni di accesso:
| QRectF | destinationRect() const |
| void | setDestinationRect(const QRectF &outputRect) |
Segnale Notifier:
| void | destinationRectChanged() |
interpolationMethod : InterpolationMethod
Questa proprietà indica il metodo di interpolazione applicato in caso di allungamento dell'immagine.
Specifica l'interpolazione applicata in caso di allungamento dell'immagine. Il valore predefinito è Lineare.
Funzioni di accesso:
| Qt3DRender::QBlitFramebuffer::InterpolationMethod | interpolationMethod() const |
| void | setInterpolationMethod(Qt3DRender::QBlitFramebuffer::InterpolationMethod interpolationMethod) |
Segnale di notifica:
| void | interpolationMethodChanged() |
source : Qt3DRender::QRenderTarget*
Specifica il target di rendering di origine. Se non viene impostato, si presume che l'origine sia il framebuffer predefinito (ovvero il backbuffer della superficie corrente), se presente.
Nota: la sorgente e la destinazione non devono fare riferimento allo stesso bersaglio di rendering.
Funzioni di accesso:
Segnale di notifica:
| void | sourceChanged() |
sourceAttachmentPoint : Qt3DRender::QRenderTargetOutput::AttachmentPoint
Specifica il punto di attacco di origine.
Funzioni di accesso:
| Qt3DRender::QRenderTargetOutput::AttachmentPoint | sourceAttachmentPoint() const |
| void | setSourceAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint sourceAttachmentPoint) |
Segnale di notifica:
| void | sourceAttachmentPointChanged() |
sourceRect : QRectF
Specifica il rettangolo di origine. Si presume che le coordinate seguano il normale sistema di coordinate Qt, ovvero che l'asse Y vada dall'alto verso il basso.
Funzioni di accesso:
| QRectF | sourceRect() const |
| void | setSourceRect(const QRectF &inputRect) |
Segnale Notifier:
| void | sourceRectChanged() |
Documentazione delle funzioni membro
[explicit] QBlitFramebuffer::QBlitFramebuffer(Qt3DCore::QNode *parent = nullptr)
Crea un nuovo oggetto `QBlitFramebuffer` con il ` parent` specificato.
[virtual noexcept] QBlitFramebuffer::~QBlitFramebuffer()
Distruttore.
Qt3DRender::QRenderTarget *QBlitFramebuffer::destination() const
Restituisce il render target di destinazione.
Nota: Funzionegetter per la proprietà destination.
Vedi anche setDestination().
Qt3DRender::QRenderTargetOutput::AttachmentPoint QBlitFramebuffer::destinationAttachmentPoint() const
Restituisce il punto di attacco di destinazione.
Nota: Funzionegetter per la proprietà destinationAttachmentPoint.
Vedi anche setDestinationAttachmentPoint().
QRectF QBlitFramebuffer::destinationRect() const
Restituisce il rettangolo di destinazione.
Nota: Funzionegetter per la proprietà destinationRect.
Vedi anche setDestinationRect().
Qt3DRender::QBlitFramebuffer::InterpolationMethod QBlitFramebuffer::interpolationMethod() const
Restituisce il metodo di interpolazione.
Nota: Funzionegetter per la proprietà interpolationMethod.
Vedi anche setInterpolationMethod().
void QBlitFramebuffer::setDestination(Qt3DRender::QRenderTarget *destination)
Imposta il target di rendering di destinazione. Il valore predefinito è nullptr; in tal caso, si presume che la destinazione sia il framebuffer predefinito (ovvero il backbuffer della superficie corrente), se presente.
Nota: la sorgente e la destinazione non devono fare riferimento allo stesso target di rendering.
Nota: come per gli altri nodi, « destination » viene automaticamente associato come figlio all'istanza « QBlitFramebuffer » quando non è stato impostato alcun genitore. Viene inoltre monitorata la durata, il che significa che la destinazione torna a «nullptr» nel caso in cui l'« destination » attualmente impostato venga distrutto.
Nota: Funzionesetter per la proprietà destination.
Vedi anche destination().
void QBlitFramebuffer::setDestinationAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint destinationAttachmentPoint)
Imposta la proprietà destinationAttachmentPoint. Il valore predefinito è Qt3DRender::QRenderTargetOutput::AttachmentPoint::Color0.
Nota: funzionesetter per la proprietà destinationAttachmentPoint.
Vedi anche destinationAttachmentPoint().
void QBlitFramebuffer::setDestinationRect(const QRectF &outputRect)
Imposta il rettangolo di destinazione su outputRect. Si presume che le coordinate seguano il normale sistema di coordinate Qt, ovvero che l'asse Y vada dall'alto verso il basso.
Nota: Funzionesetter per la proprietà destinationRect.
Vedi anche destinationRect().
void QBlitFramebuffer::setInterpolationMethod(Qt3DRender::QBlitFramebuffer::InterpolationMethod interpolationMethod)
Imposta la proprietà " interpolationMethod " che viene applicata se l'immagine viene allungata. Il valore predefinito è "Linear".
Nota: funzionesetter per la proprietà interpolationMethod.
Vedi anche interpolationMethod().
void QBlitFramebuffer::setSource(Qt3DRender::QRenderTarget *source)
Imposta il target di rendering di origine. Il valore predefinito è nullptr; in tal caso, si presume che l'origine sia il framebuffer predefinito (ovvero il backbuffer della superficie corrente), se presente.
Nota: la sorgente e la destinazione non devono fare riferimento allo stesso target di rendering.
Nota: come per gli altri nodi, ` source ` viene automaticamente associato come figlio all'istanza di ` QBlitFramebuffer ` quando non è stato impostato alcun genitore. Viene inoltre monitorata la durata, il che significa che la sorgente torna a `nullptr` nel caso in cui l'` source ` attualmente impostato venga distrutto.
Nota: Funzionesetter per la proprietà source.
Vedi anche source().
void QBlitFramebuffer::setSourceAttachmentPoint(Qt3DRender::QRenderTargetOutput::AttachmentPoint sourceAttachmentPoint)
Imposta la proprietà sourceAttachmentPoint. Il valore predefinito è Qt3DRender::QRenderTargetOutput::AttachmentPoint::Color0.
Nota: funzionedi impostazione per la proprietà sourceAttachmentPoint.
Vedi anche sourceAttachmentPoint().
void QBlitFramebuffer::setSourceRect(const QRectF &inputRect)
Imposta il rettangolo sorgente su inputRect. Si presume che le coordinate seguano il normale sistema di coordinate Qt, ovvero che l'asse Y vada dall'alto verso il basso.
Nota: Funzionesetter per la proprietà sourceRect.
Vedi anche sourceRect().
Qt3DRender::QRenderTarget *QBlitFramebuffer::source() const
Restituisce il target di rendering di origine.
Nota: Funzionegetter per la proprietà source.
Vedi anche ` setSource()`.
Qt3DRender::QRenderTargetOutput::AttachmentPoint QBlitFramebuffer::sourceAttachmentPoint() const
Restituisce il punto di attacco di origine.
Nota: Funzionegetter per la proprietà sourceAttachmentPoint.
Vedi anche setSourceAttachmentPoint().
QRectF QBlitFramebuffer::sourceRect() const
Restituisce il rettangolo sorgente.
Nota: Funzionegetter per la proprietà sourceRect.
Vedi anche setSourceRect().
© 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.