Qt3DRender::QColorMask Class
class Qt3DRender::QColorMask現在バインドされているフレームバッファに、どの色成分を出力するかを指定できます。詳細...
| ヘッダー: | #include <qcolormask.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | ColorMask |
| 継承元: | Qt3DRender::QRenderState |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- alphaMasked : bool
- blueMasked : bool
- greenMasked : bool
- redMasked : bool
パブリック関数
| QColorMask(Qt3DCore::QNode *parent = nullptr) | |
| bool | isAlphaMasked() const |
| bool | isBlueMasked() const |
| bool | isGreenMasked() const |
| bool | isRedMasked() const |
パブリックスロット
| void | setAlphaMasked(bool alphaMasked) |
| void | setBlueMasked(bool blueMasked) |
| void | setGreenMasked(bool greenMasked) |
| void | setRedMasked(bool redMasked) |
シグナル
| void | alphaMaskedChanged(bool alphaMasked) |
| void | blueMaskedChanged(bool blueMasked) |
| void | greenMaskedChanged(bool greenMasked) |
| void | redMaskedChanged(bool redMasked) |
詳細な説明
デフォルトでは、各色成分(赤、緑、青、アルファ)のプロパティは `true ` に設定されており、これらはフレームバッファに書き込まれます。いずれかの色成分を `false ` に設定すると、その成分がフレームバッファに書き込まれるのを防ぐことができます。
プロパティのドキュメント
alphaMasked : bool
alphaMasked コンポーネントをフレームバッファに書き込むかどうかを指定します。
アクセス関数:
| bool | isAlphaMasked() const |
| void | setAlphaMasked(bool alphaMasked) |
Notifierシグナル:
| void | alphaMaskedChanged(bool alphaMasked) |
blueMasked : bool
青色の色成分をフレームバッファに書き込むかどうかを指定します。
アクセス関数:
| bool | isBlueMasked() const |
| void | setBlueMasked(bool blueMasked) |
通知シグナル:
| void | blueMaskedChanged(bool blueMasked) |
greenMasked : bool
緑色の色成分をフレームバッファに書き込むかどうかを指定します。
アクセス関数:
| bool | isGreenMasked() const |
| void | setGreenMasked(bool greenMasked) |
通知シグナル:
| void | greenMaskedChanged(bool greenMasked) |
redMasked : bool
赤のカラー成分をフレームバッファに書き込むかどうかを指定します。
アクセス関数:
| bool | isRedMasked() const |
| void | setRedMasked(bool redMasked) |
通知シグナル:
| void | redMaskedChanged(bool redMasked) |
メンバ関数のドキュメント
[explicit] QColorMask::QColorMask(Qt3DCore::QNode *parent = nullptr)
parent を親として、新しいQt3DCore::QColorMaskインスタンスを作成します。
© 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.