Qt3DRender::QClipPlane Class
class Qt3DRender::QClipPlanegl_ClipDistance를 사용하여 셰이더 내에서 추가 OpenGL 클리핑 평면을 활성화합니다. 더 보기...
| 헤더: | #include <qclipplane.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML에서: | ClipPlane |
| 상속: | Qt3DRender::QRenderState |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않을 것을 강력히 권장합니다.
속성
- distance : float
- normal : QVector3D
- planeIndex : int
공개 함수
| float | distance() const |
| QVector3D | normal() const |
| int | planeIndex() const |
공개 슬롯
| void | setDistance(float) |
| void | setNormal(QVector3D) |
| void | setPlaneIndex(int) |
신호
| void | distanceChanged(float distance) |
| void | normalChanged(QVector3D normal) |
| void | planeIndexChanged(int planeIndex) |
상세 설명
기본적으로 OpenGL은 최대 8개의 추가 클리핑 평면을 지원합니다. Qt3DCore::QClipPlane을 사용하면 이러한 추가 평면 중 하나를 활성화할 수 있습니다. 그런 다음 셰이더에서 gl_ClipDistance[i]를 사용하여 이러한 평면을 조작할 수 있으며, 여기서 i는 0에서 7 사이의 값을 가집니다. 기본 구현에서는 8개 이상의 클리핑 평면을 지원할 수도 있지만, 이는 보장되지 않습니다.
속성 문서
distance : float
평면과 세계 원점 사이의 거리를 저장합니다.
액세스 함수:
| float | distance() const |
| void | setDistance(float) |
알림 신호:
| void | distanceChanged(float distance) |
normal : QVector3D
평면의 법선을 저장합니다.
액세스 함수:
| QVector3D | normal() const |
| void | setNormal(QVector3D) |
알림 신호:
| void | normalChanged(QVector3D normal) |
planeIndex : int
평면의 인덱스를 저장합니다.
참고: 일반적으로 0~7 사이입니다.
액세스 함수:
| int | planeIndex() const |
| void | setPlaneIndex(int) |
알림 신호:
| void | planeIndexChanged(int planeIndex) |
© 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.