이 페이지에서

Qt3DRender::QStencilOperationArguments Class

class Qt3DRender::QStencilOperationArguments

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

헤더: #include <qstenciloperationarguments.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: StencilOperationArguments
상속: QObject
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

공개 유형

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

이 열거형에는 스텐실 연산에 사용되는 값들이 포함되어 있습니다.

상수값설명
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 : 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)

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