QStencilOperationArguments Class

class Qt3DRender::QStencilOperationArguments

QStencilOperationArgumentsクラスは、ステンシルと深さのテストが失敗したときに実行されるアクションを設定します。詳細...

ヘッダー #include <QStencilOperationArguments>
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 }

プロパティ

パブリック機能

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::Front0x0404引数は前面ポリゴンに適用される。
Qt3DRender::QStencilOperationArguments::Back0x0405引数は裏向きのポリゴンに適用される。
Qt3DRender::QStencilOperationArguments::FrontAndBack0x0408引数は、表と裏の両方のポリゴンに適用される。

enum QStencilOperationArguments::Operation

この列挙は、ステンシル操作の値を保持する。

定数説明
Qt3DRender::QStencilOperationArguments::Zero0ステンシル値をゼロに設定する。
Qt3DRender::QStencilOperationArguments::Keep0x1E00現在のステンシル値を保持する。
Qt3DRender::QStencilOperationArguments::Replace0x1E01マスクされたフラグメントのステンシル値に置き換えます。
Qt3DRender::QStencilOperationArguments::Increment0x1E02現在の値を彩度で増加させる。
Qt3DRender::QStencilOperationArguments::Decrement0x1E03現在の値を彩度で減らします。
Qt3DRender::QStencilOperationArguments::IncrementWrap0x8507現在の値をラップで増加させる。
Qt3DRender::QStencilOperationArguments::DecrementWrap0x8508ラップで現在値を減少させる。
Qt3DRender::QStencilOperationArguments::Invert0x150A現在値を反転する。

プロパティの説明

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 : const 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)

© 2025 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.