QStencilTestArguments Class

class Qt3DRender ::QStencilTestArguments

The QStencilTestArguments class specifies arguments for stencil test. 更多...

头: #include <QStencilTestArguments>
qmake: QT += 3drender
Since: Qt 5.7
实例化: StencilTestArguments
继承: QObject

该类在 Qt 5.7 引入。

公共类型

enum StencilFaceMode { Front, Back, FrontAndBack }
enum StencilFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual }

特性

公共函数

uint comparisonMask () const
Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode () const
int referenceValue () const
Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction () const

公共槽

void setComparisonMask (uint comparisonMask )
void setReferenceValue (int referenceValue )
void setStencilFunction (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction )

信号

void comparisonMaskChanged (uint comparisonMask )
void faceModeChanged (Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode )
void referenceValueChanged (int referenceValue )
void stencilFunctionChanged (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction )

详细描述

The Qt3DRender::QStencilTestArguments class specifies the arguments for the stencil test.

成员类型文档编制

enum QStencilTestArguments:: StencilFaceMode

This enumeration holds the values for stencil test arguments face modes

常量 描述
Qt3DRender::QStencilTestArguments::Front 0x0404 Arguments are applied to front-facing polygons.
Qt3DRender::QStencilTestArguments::Back 0x0405 Arguments are applied to back-facing polygons.
Qt3DRender::QStencilTestArguments::FrontAndBack 0x0408 Arguments are applied to both front- and back-facing polygons.

enum QStencilTestArguments:: StencilFunction

Enumeration for the stencil function values

常量 描述
Qt3DRender::QStencilTestArguments::Never 0x0200 Never pass stencil test
Qt3DRender::QStencilTestArguments::Always 0x0207 Always pass stencil test
Qt3DRender::QStencilTestArguments::Less 0x0201 Pass stencil test if fragment stencil is less than reference value
Qt3DRender::QStencilTestArguments::LessOrEqual 0x0203 Pass stencil test if fragment stencil is less than or equal to reference value
Qt3DRender::QStencilTestArguments::Equal 0x0202 Pass stencil test if fragment stencil is equal to reference value
Qt3DRender::QStencilTestArguments::GreaterOrEqual 0x0206 Pass stencil test if fragment stencil is greater than or equal to reference value
Qt3DRender::QStencilTestArguments::Greater 0x0204 Pass stencil test if fragment stencil is greater than reference value
Qt3DRender::QStencilTestArguments::NotEqual 0x0205 Pass stencil test if fragment stencil is not equal to reference value

特性文档编制

comparisonMask : uint

Holds the stencil test comparison mask. Default is all zeroes.

访问函数:

uint comparisonMask () const
void setComparisonMask (uint comparisonMask )

通知程序信号:

void comparisonMaskChanged (uint comparisonMask )

faceMode : const StencilFaceMode

Holds the faces the arguments are applied to.

访问函数:

Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode () const

通知程序信号:

void faceModeChanged (Qt3DRender::QStencilTestArguments::StencilFaceMode faceMode )

referenceValue : int

Holds the stencil test reference value. Default is zero.

访问函数:

int referenceValue () const
void setReferenceValue (int referenceValue )

通知程序信号:

void referenceValueChanged (int referenceValue )

stencilFunction : StencilFunction

Holds the stencil test function. Default is Never.

访问函数:

Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction () const
void setStencilFunction (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction )

通知程序信号:

void stencilFunctionChanged (Qt3DRender::QStencilTestArguments::StencilFunction stencilFunction )

另请参阅 Qt3DRender::QStencilTestArguments::StencilFunction .