Qt3DRender::QColorMask Class
class Qt3DRender::QColorMaskConsente di specificare quali componenti di colore devono essere scritti nel frame buffer attualmente associato. Maggiori informazioni...
| Intestazione: | #include <qcolormask.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | ColorMask |
| Eredita da: | Qt3DRender::QRenderState |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- alphaMasked : bool
- blueMasked : bool
- greenMasked : bool
- redMasked : bool
Funzioni pubbliche
| QColorMask(Qt3DCore::QNode *parent = nullptr) | |
| bool | isAlphaMasked() const |
| bool | isBlueMasked() const |
| bool | isGreenMasked() const |
| bool | isRedMasked() const |
Slot pubblici
| void | setAlphaMasked(bool alphaMasked) |
| void | setBlueMasked(bool blueMasked) |
| void | setGreenMasked(bool greenMasked) |
| void | setRedMasked(bool redMasked) |
Segnali
| void | alphaMaskedChanged(bool alphaMasked) |
| void | blueMaskedChanged(bool blueMasked) |
| void | greenMaskedChanged(bool greenMasked) |
| void | redMaskedChanged(bool redMasked) |
Descrizione dettagliata
Per impostazione predefinita, la proprietà di ciascuna componente di colore (rosso, verde, blu, alfa) è impostata su " true ", il che significa che verrà scritta nel frame buffer. Impostando una qualsiasi delle componenti di colore su " false " si impedirà che venga scritta nel frame buffer.
Documentazione delle proprietà
alphaMasked : bool
Indica se il componente alphaMasked deve essere scritto nel frame buffer.
Funzioni di accesso:
| bool | isAlphaMasked() const |
| void | setAlphaMasked(bool alphaMasked) |
Segnale di notifica:
| void | alphaMaskedChanged(bool alphaMasked) |
blueMasked : bool
Indica se la componente di colore blu deve essere scritta nel frame buffer.
Funzioni di accesso:
| bool | isBlueMasked() const |
| void | setBlueMasked(bool blueMasked) |
Segnale di notifica:
| void | blueMaskedChanged(bool blueMasked) |
greenMasked : bool
Indica se la componente di colore verde debba essere scritta nel frame buffer.
Funzioni di accesso:
| bool | isGreenMasked() const |
| void | setGreenMasked(bool greenMasked) |
Segnale di notifica:
| void | greenMaskedChanged(bool greenMasked) |
redMasked : bool
Indica se la componente di colore rossa deve essere scritta nel frame buffer.
Funzioni di accesso:
| bool | isRedMasked() const |
| void | setRedMasked(bool redMasked) |
Segnale di notifica:
| void | redMaskedChanged(bool redMasked) |
Documentazione delle funzioni membro
[explicit] QColorMask::QColorMask(Qt3DCore::QNode *parent = nullptr)
Crea una nuova istanza di Qt3DCore::QColorMask con parent come genitore.
© 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.