Qt3DRender::QClearBuffers Class
class Qt3DRender::QClearBuffersClasse per svuotare i buffer. Altro...
| Intestazione: | #include <qclearbuffers.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | ClearBuffers |
| Eredita da: | Qt3DRender::QFrameGraphNode |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Tipi pubblici
| enum | BufferType { None, ColorBuffer, DepthBuffer, StencilBuffer, DepthStencilBuffer, …, AllBuffers } |
| flags | BufferTypeFlags |
Proprietà
|
|
Funzioni pubbliche
| QClearBuffers(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DRender::QClearBuffers::BufferType | buffers() const |
| QColor | clearColor() const |
| float | clearDepthValue() const |
| int | clearStencilValue() const |
| Qt3DRender::QRenderTargetOutput * | colorBuffer() const |
Slot pubblici
| void | setBuffers(Qt3DRender::QClearBuffers::BufferType buffers) |
| void | setClearColor(const QColor &color) |
| void | setClearDepthValue(float clearDepthValue) |
| void | setClearStencilValue(int clearStencilValue) |
| void | setColorBuffer(Qt3DRender::QRenderTargetOutput *buffer) |
Segnali
| void | buffersChanged(Qt3DRender::QClearBuffers::BufferType buffers) |
| void | clearColorChanged(const QColor &color) |
| void | clearDepthValueChanged(float clearDepthValue) |
| void | clearStencilValueChanged(int clearStencilValue) |
| void | colorBufferChanged(Qt3DRender::QRenderTargetOutput *buffer) |
Descrizione dettagliata
Un nodo FrameGraph di tipo " Qt3DRender::QClearBuffers " consente di azzerare i buffer di destinazione del rendering specificati con valori specifici.
Documentazione sui tipi dei membri
enum QClearBuffers::BufferType
flags QClearBuffers::BufferTypeFlags
Questo tipo di enumerazione descrive i tipi di buffer da cancellare.
| Costante | Valore | Descrizione |
|---|---|---|
Qt3DRender::QClearBuffers::None | 0 | Non verrà cancellato alcun buffer |
Qt3DRender::QClearBuffers::ColorBuffer | (1 << 0) | Cancella i buffer dei colori |
Qt3DRender::QClearBuffers::DepthBuffer | (1 << 1) | Cancella il buffer di profondità |
Qt3DRender::QClearBuffers::StencilBuffer | (1 << 2) | Cancella il buffer stencil |
Qt3DRender::QClearBuffers::DepthStencilBuffer | DepthBuffer | StencilBuffer | Cancella i buffer di profondità e stencil |
Qt3DRender::QClearBuffers::ColorDepthBuffer | ColorBuffer | DepthBuffer | Cancella i buffer di colore e di profondità |
Qt3DRender::QClearBuffers::ColorDepthStencilBuffer | ColorBuffer | DepthStencilBuffer | Cancella i buffer di colore, profondità e stencil |
Qt3DRender::QClearBuffers::AllBuffers | 0xFFFFFFFF | Cancella tutti i buffer |
Il tipo BufferTypeFlags è un typedef per QFlags<BufferType>. Memorizza una combinazione OR di valori BufferType.
Documentazione delle proprietà
buffers : BufferType
Specifica il tipo di buffer da utilizzare.
Funzioni di accesso:
| Qt3DRender::QClearBuffers::BufferType | buffers() const |
| void | setBuffers(Qt3DRender::QClearBuffers::BufferType buffers) |
Segnale di notifica:
| void | buffersChanged(Qt3DRender::QClearBuffers::BufferType buffers) |
clearColor : QColor
Specifica il colore di sfondo da utilizzare.
Funzioni di accesso:
| QColor | clearColor() const |
| void | setClearColor(const QColor &color) |
Segnale di notifica:
| void | clearColorChanged(const QColor &color) |
clearDepthValue : float
Specifica il valore della profondità di nitidezza da utilizzare.
Funzioni di accesso:
| float | clearDepthValue() const |
| void | setClearDepthValue(float clearDepthValue) |
Segnale di notifica:
| void | clearDepthValueChanged(float clearDepthValue) |
clearStencilValue : int
Specifica il valore dello stencil da utilizzare.
Funzioni di accesso:
| int | clearStencilValue() const |
| void | setClearStencilValue(int clearStencilValue) |
Segnale di notifica:
| void | clearStencilValueChanged(int clearStencilValue) |
colorBuffer : Qt3DRender::QRenderTargetOutput*
Specifica un buffer di colore specifico da azzerare. Se impostato su NULL (valore predefinito) e se è impostato il flag ` ColorBuffer `, verranno azzerati tutti i buffer di colore.
Funzioni di accesso:
| Qt3DRender::QRenderTargetOutput * | colorBuffer() const |
| void | setColorBuffer(Qt3DRender::QRenderTargetOutput *buffer) |
Segnale del notificatore:
| void | colorBufferChanged(Qt3DRender::QRenderTargetOutput *buffer) |
Documentazione delle funzioni membro
[explicit] QClearBuffers::QClearBuffers(Qt3DCore::QNode *parent = nullptr)
Il costruttore crea un'istanza con l'parent specificato.
© 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.