QStencilOperationArguments Class

class Qt3DRender::QStencilOperationArguments

QStencilOperationArguments 클래스는 스텐실 및 깊이 테스트가 실패할 때 수행할 작업을 설정합니다. 더 보기...

Header: #include <QStencilOperationArguments>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: StencilOperationArguments
상속합니다: QObject
상태: Deprecated

공용 유형

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

이 열거형에는 스텐실 연산에 대한 값이 들어 있습니다.

Constant설명
Qt3DRender::QStencilOperationArguments::Zero0스텐실 값을 0으로 설정합니다.
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.