QStencilOperationArguments Class

class Qt3DRender::QStencilOperationArguments

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

Header: #include <QStencilOperationArguments>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Instantiated By: StencilOperationArguments
Inherits: QObject

Public Types

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

Properties

Public Functions

Qt3DRender::QStencilOperationArguments::Operation allTestsPassOperation() const
Qt3DRender::QStencilOperationArguments::Operation depthTestFailureOperation() const
Qt3DRender::QStencilOperationArguments::FaceMode faceMode() const
Qt3DRender::QStencilOperationArguments::Operation stencilTestFailureOperation() const

Public Slots

void setAllTestsPassOperation(Qt3DRender::QStencilOperationArguments::Operation operation)
void setDepthTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation)
void setStencilTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation)

Signals

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

Detailed Description

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

See also Qt3DRender::QStencilOperation.

Member Type Documentation

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.

Property Documentation

allTestsPassOperation : Operation

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

Access functions:

Qt3DRender::QStencilOperationArguments::Operation allTestsPassOperation() const
void setAllTestsPassOperation(Qt3DRender::QStencilOperationArguments::Operation operation)

Notifier signal:

void allTestsPassOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilDepthPass)

depthTestFailureOperation : Operation

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

Access functions:

Qt3DRender::QStencilOperationArguments::Operation depthTestFailureOperation() const
void setDepthTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation)

Notifier signal:

void depthTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation depthFail)

[read-only] faceMode : const FaceMode

Holds the faces the arguments are applied to.

Access functions:

Qt3DRender::QStencilOperationArguments::FaceMode faceMode() const

Notifier signal:

void faceModeChanged(Qt3DRender::QStencilOperationArguments::FaceMode faceMode)

stencilTestFailureOperation : Operation

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

Access functions:

Qt3DRender::QStencilOperationArguments::Operation stencilTestFailureOperation() const
void setStencilTestFailureOperation(Qt3DRender::QStencilOperationArguments::Operation operation)

Notifier signal:

void stencilTestFailureOperationChanged(Qt3DRender::QStencilOperationArguments::Operation stencilFail)

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