QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

QPlaneGeometry 클래스를 사용하면 3D 공간에서 평면을 만들 수 있습니다. 더 보기...

Header: #include <Qt3DExtras/QPlaneGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
QML에서: PlaneGeometry
상속합니다: Qt3DCore::QGeometry
상태: Deprecated

속성

공용 기능

QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)
float height() const
Qt3DCore::QAttribute *indexAttribute() const
bool mirrored() const
Qt3DCore::QAttribute *normalAttribute() const
Qt3DCore::QAttribute *positionAttribute() const
QSize resolution() const
Qt3DCore::QAttribute *tangentAttribute() const
Qt3DCore::QAttribute *texCoordAttribute() const
void updateIndices()
void updateVertices()
float width() const

공용 슬롯

void setHeight(float height)
void setMirrored(bool mirrored)
void setResolution(const QSize &resolution)
void setWidth(float width)

신호

void heightChanged(float height)
void mirroredChanged(bool mirrored)
void resolutionChanged(const QSize &resolution)
void widthChanged(float width)

상세 설명

QPlaneGeometry 클래스는 QPlaneMesh 에서 내부적으로 가장 일반적으로 사용되지만, 사용자 정의 Qt3DRender::QGeometryRenderer 서브클래스에서도 사용할 수 있습니다.

프로퍼티 문서

height : float

평면 높이를 유지합니다.

기능에 액세스합니다:

float height() const
void setHeight(float height)

알림 신호:

void heightChanged(float height)

[read-only] indexAttribute : Qt3DCore::QAttribute* const

지오메트리 인덱스 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

평면의 UV 좌표를 수직으로 반전할지 여부를 제어합니다.

기능에 액세스합니다:

bool mirrored() const
void setMirrored(bool mirrored)

알림 신호:

void mirroredChanged(bool mirrored)

[read-only] normalAttribute : Qt3DCore::QAttribute* const

지오메트리 노멀 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *normalAttribute() const

[read-only] positionAttribute : Qt3DCore::QAttribute* const

지오메트리 위치 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *positionAttribute() const

resolution : QSize

평면 해상도를 유지합니다.

기능에 액세스합니다:

QSize resolution() const
void setResolution(const QSize &resolution)

알림 신호:

void resolutionChanged(const QSize &resolution)

[read-only] tangentAttribute : Qt3DCore::QAttribute* const

지오메트리 접선 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *tangentAttribute() const

[read-only] texCoordAttribute : Qt3DCore::QAttribute* const

지오메트리 텍스처 좌표 속성을 보유합니다.

함수에 액세스합니다:

Qt3DCore::QAttribute *texCoordAttribute() const

width : float

평면 너비를 유지합니다.

기능에 액세스합니다:

float width() const
void setWidth(float width)

알림 신호:

void widthChanged(float width)

멤버 함수 문서

[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)

parent 를 사용하여 새로운 QPlaneGeometry를 구축합니다.

void QPlaneGeometry::updateIndices()

메시 해상도에 따라 인덱스를 업데이트합니다.

void QPlaneGeometry::updateVertices()

메시 해상도, 너비, 높이 프로퍼티를 기반으로 버텍스를 업데이트합니다.

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