QClipPlane Class

class Qt3DRender::QClipPlane

gl_ClipDistance를 사용하여 셰이더에 포함할 수 있는 추가 OpenGL 클리핑 평면을 활성화합니다. 더 보기...

헤더: #include <QClipPlane>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: ClipPlane
상속합니다: Qt3DRender::QRenderState
상태: Deprecated

속성

공용 기능

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을 사용하면 이러한 추가 평면 중 하나를 활성화할 수 있습니다. 그런 다음 이 평면은 0에서 7 사이로 변하는 gl_ClipDistance[i]를 사용하여 셰이더에서 조작할 수 있습니다. 기본 구현은 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)

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