Qt3DRender::QStencilOperationArguments Class
class Qt3DRender::QStencilOperationArgumentsQStencilOperationArguments クラスは、ステンシルテストおよび深度テストが失敗した際に実行されるアクションを設定します。詳細...
| ヘッダー: | #include <qstenciloperationarguments.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | StencilOperationArguments |
| 継承元: | QObject |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック型
| enum | FaceMode { Front, Back, FrontAndBack } |
| enum | Operation { Zero, Keep, Replace, Increment, Decrement, …, Invert } |
プロパティ
- allTestsPassOperation : Operation
- depthTestFailureOperation : Operation
- faceMode : FaceMode
- stencilTestFailureOperation : Operation
パブリック関数
| Qt3DRender::QStencilOperationArguments::Operation | allTestsPassOperation() const |
| Qt3DRender::QStencilOperationArguments::Operation | depthTestFailureOperation() const |
| Qt3DRender::QStencilOperationArguments::FaceMode | faceMode() const |
| Qt3DRender::QStencilOperationArguments::Operation | stencilTestFailureOperation() const |
パブリックスロット
| void | setAllTestsPassOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
| void | setDepthTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
| void | setStencilTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
シグナル
| void | allTestsPassOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilDepthPass) |
| void | depthTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation depthFail) |
| void | faceModeChanged(Qt3DRender::QStencilOperationArguments::FaceMode faceMode) |
| void | stencilTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilFail) |
詳細な説明
Qt3DRender::QStencilOperationArguments クラスは、ステンシル演算の引数を指定します。
「Qt3DRender::QStencilOperation」も参照してください 。
メンバ型のドキュメント
enum QStencilOperationArguments::FaceMode
この列挙型には、ステンシル演算の引数である面モードの値が格納されています
| 定数 | 値 | 説明 |
|---|---|---|
Qt3DRender::QStencilOperationArguments::Front | 0x0404 | 引数は、前面向きのポリゴンに適用されます。 |
Qt3DRender::QStencilOperationArguments::Back | 0x0405 | 引数は、背面向きのポリゴンに適用されます。 |
Qt3DRender::QStencilOperationArguments::FrontAndBack | 0x0408 | 引数は、前面および背面のポリゴンの両方に適用されます。 |
enum QStencilOperationArguments::Operation
この列挙型には、ステンシル演算の値が格納されています。
| 定数 | 値 | 説明 |
|---|---|---|
Qt3DRender::QStencilOperationArguments::Zero | 0 | ステンシル値をゼロに設定します。 |
Qt3DRender::QStencilOperationArguments::Keep | 0x1E00 | 現在のステンシル値を保持します。 |
Qt3DRender::QStencilOperationArguments::Replace | 0x1E01 | マスクされたフラグメントのステンシル値に置き換えます。 |
Qt3DRender::QStencilOperationArguments::Increment | 0x1E02 | 現在の値に飽和度を加算します。 |
Qt3DRender::QStencilOperationArguments::Decrement | 0x1E03 | 現在の値を飽和度分だけ減算します。 |
Qt3DRender::QStencilOperationArguments::IncrementWrap | 0x8507 | ラップを使用して現在の値を増加させます。 |
Qt3DRender::QStencilOperationArguments::DecrementWrap | 0x8508 | ラップを使用して現在の値を減少させます。 |
Qt3DRender::QStencilOperationArguments::Invert | 0x150A | 現在の値を反転します。 |
プロパティのドキュメント
allTestsPassOperation : Operation
深度テストおよびステンシルテストに合格した場合のステンシルテスト操作を保持します。デフォルトは StencilOperationArguments.Keep です。
アクセス関数:
| Qt3DRender::QStencilOperationArguments::Operation | allTestsPassOperation() const |
| void | setAllTestsPassOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
通知信号:
| void | allTestsPassOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilDepthPass) |
depthTestFailureOperation : Operation
ステンシルテストは合格したが、深度テストに不合格となった場合のステンシルテスト操作を保持します。デフォルトは StencilOperationArguments.Keep です。
アクセス関数:
| Qt3DRender::QStencilOperationArguments::Operation | depthTestFailureOperation() const |
| void | setDepthTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
通知信号:
| void | depthTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation depthFail) |
[read-only] faceMode : FaceMode
引数が適用される面を保持します。
アクセス関数:
| Qt3DRender::QStencilOperationArguments::FaceMode | faceMode() const |
通知シグナル:
| void | faceModeChanged(Qt3DRender::QStencilOperationArguments::FaceMode faceMode) |
stencilTestFailureOperation : Operation
ステンシルテストが失敗した場合のステンシルテスト操作を保持します。デフォルトは StencilOperationArguments.Keep です。
アクセス関数:
| Qt3DRender::QStencilOperationArguments::Operation | stencilTestFailureOperation() const |
| void | setStencilTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation) |
通知信号:
| void | stencilTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilFail) |
© 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.