QStencilOperationArguments Class

(Qt3DRender::QStencilOperationArguments)

The QStencilOperationArguments class sets the actions to be taken when stencil and depth tests fail. 更多...

头文件: #include <QStencilOperationArguments>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: StencilOperationArguments
基类: QObject

公有类型

enum FaceMode { Front, Back, FrontAndBack }
enum Operation { Zero, Keep, Replace, Increment, ..., Invert }

属性

公有函数

Operation allTestsPassOperation() const
Operation depthTestFailureOperation() const
FaceMode faceMode() const
Operation stencilTestFailureOperation() const
  • 32 个公有函数继承自 QObject

公有槽函数

void setAllTestsPassOperation(Operation operation)
void setDepthTestFailureOperation(Operation operation)
void setStencilTestFailureOperation(Operation operation)
  • 1 个公有槽函数继承自 QObject

信号

void allTestsPassOperationChanged(Operation stencilDepthPass)
void depthTestFailureOperationChanged(Operation depthFail)
void faceModeChanged(FaceMode faceMode)
void stencilTestFailureOperationChanged(Operation stencilFail)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QStencilOperationArguments class sets the actions to be taken when stencil and depth tests fail.

The Qt3DRender::QStencilOperationArguments class specifies the arguments for the stencil operations.

参见 Qt3DRender::QStencilOperation.

成员类型

enum QStencilOperationArguments::FaceMode

This enumeration holds the values for stencil operation argument face modes

ConstantValueDescription
Qt3DRender::QStencilOperationArguments::Front0x0404Arguments are applied to front-facing polygons.
Qt3DRender::QStencilOperationArguments::Back0x0405Arguments are applied to back-facing polygons.
Qt3DRender::QStencilOperationArguments::FrontAndBack0x0408Arguments are applied to both front- and back-facing polygons.

enum QStencilOperationArguments::Operation

This enumeration holds the values for stencil operation.

ConstantValueDescription
Qt3DRender::QStencilOperationArguments::Zero0Set stencil value to zero.
Qt3DRender::QStencilOperationArguments::Keep0x1E00Keep current stencil value.
Qt3DRender::QStencilOperationArguments::Replace0x1E01Replace with the masked fragment stencil value.
Qt3DRender::QStencilOperationArguments::Increment0x1E02Increment current value with saturation.
Qt3DRender::QStencilOperationArguments::Decrement0x1E03Decrement current value with saturation.
Qt3DRender::QStencilOperationArguments::IncrementWrap0x8507Increment current value with wrap.
Qt3DRender::QStencilOperationArguments::DecrementWrap0x8508Decrement current value with wrap.
Qt3DRender::QStencilOperationArguments::Invert0x150AInvert the current value.

属性

allTestsPassOperation : Operation

Holds the stencil test operation for when depth and stencil test pass. Default is StencilOperationArguments.Keep.

访问函数:

Operation allTestsPassOperation() const
void setAllTestsPassOperation(Operation operation)

Notifier signal:

void allTestsPassOperationChanged(Operation stencilDepthPass)

depthTestFailureOperation : Operation

Holds the stencil test operation for when the stencil test passes, but depth test fails. Default is StencilOperationArguments.Keep.

访问函数:

Operation depthTestFailureOperation() const
void setDepthTestFailureOperation(Operation operation)

Notifier signal:

void depthTestFailureOperationChanged(Operation depthFail)

faceMode : const FaceMode

Holds the faces the arguments are applied to.

访问函数:

FaceMode faceMode() const

Notifier signal:

void faceModeChanged(FaceMode faceMode)

stencilTestFailureOperation : Operation

Holds the stencil test operation for when the stencil test fails. Default is StencilOperationArguments.Keep.

访问函数:

Operation stencilTestFailureOperation() const
void setStencilTestFailureOperation(Operation operation)

Notifier signal:

void stencilTestFailureOperationChanged(Operation stencilFail)