QStencilOperationArguments Class | Qt 3D 5.12.4

Qt 5.12 | Qt 3D | C++ Classes | QStencilOperationArguments

Qt 5.12.4 Reference Documentation

# QStencilOperationArguments Class

(Qt3DRender::QStencilOperationArguments)

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

Header: | #include <QStencilOperationArguments>
qmake: | QT += 3drender
Since: | Qt 5.7
Instantiated By: | StencilOperationArguments
Inherits: | QObject

- List of all members, including inherited members
- Obsolete members

## Public Types

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

## Properties

- allTestsPassOperation : Operation
- depthTestFailureOperation : Operation
- faceMode : const FaceMode
- stencilTestFailureOperation : Operation

- 1 property inherited from QObject

## Public Functions

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

- 31 public functions inherited from QObject

## Public Slots

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

- 1 public slot inherited from QObject

## 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)

- 2 signals inherited from QObject

## Static Public Members

const QMetaObject | staticMetaObject

- 9 static public members inherited from QObject

### Additional Inherited Members

- 9 protected functions inherited from QObject

## Detailed Description

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.

See also Qt3DRender::QStencilOperation.

## Member Type Documentation

### enum QStencilOperationArguments::FaceMode

This enumeration holds the values for stencil operation argument face modes

Constant | Value | Description
--- | --- | ---
`Qt3DRender::QStencilOperationArguments::Front` | `0x0404` | Arguments are applied to front-facing polygons.
`Qt3DRender::QStencilOperationArguments::Back` | `0x0405` | Arguments are applied to back-facing polygons.
`Qt3DRender::QStencilOperationArguments::FrontAndBack` | `0x0408` | Arguments are applied to both front- and back-facing polygons.

### enum QStencilOperationArguments::Operation

This enumeration holds the values for stencil operation.

Constant | Value | Description
--- | --- | ---
`Qt3DRender::QStencilOperationArguments::Zero` | `0` | Set stencil value to zero.
`Qt3DRender::QStencilOperationArguments::Keep` | `0x1E00` | Keep current stencil value.
`Qt3DRender::QStencilOperationArguments::Replace` | `0x1E01` | Replace with the masked fragment stencil value.
`Qt3DRender::QStencilOperationArguments::Increment` | `0x1E02` | Increment current value with saturation.
`Qt3DRender::QStencilOperationArguments::Decrement` | `0x1E03` | Decrement current value with saturation.
`Qt3DRender::QStencilOperationArguments::IncrementWrap` | `0x8507` | Increment current value with wrap.
`Qt3DRender::QStencilOperationArguments::DecrementWrap` | `0x8508` | Decrement current value with wrap.
`Qt3DRender::QStencilOperationArguments::Invert` | `0x150A` | Invert 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)

### 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)