Qt3DExtras::QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryQCuboidGeometry 클래스를 사용하면 3D 공간에서 직육면체를 생성할 수 있습니다. 더 보기...
| 헤더: | #include <Qt3DExtras/QCuboidGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| QML에서: | CuboidGeometry |
| 상속: | Qt3DCore::QGeometry |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
|
|
공개 함수
| QCuboidGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | xExtent() const |
| QSize | xyMeshResolution() const |
| QSize | xzMeshResolution() const |
| float | yExtent() const |
| QSize | yzMeshResolution() const |
| float | zExtent() const |
공개 슬롯
| void | setXExtent(float xExtent) |
| void | setXYMeshResolution(const QSize &resolution) |
| void | setXZMeshResolution(const QSize &resolution) |
| void | setYExtent(float yExtent) |
| void | setYZMeshResolution(const QSize &resolution) |
| void | setZExtent(float zExtent) |
신호
| void | xExtentChanged(float xExtent) |
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
| void | yExtentChanged(float yExtent) |
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
| void | zExtentChanged(float zExtent) |
상세 설명
QCuboidGeometry 클래스는 주로 QCuboidMesh 에서 내부적으로 사용되지만, 사용자 정의 Qt3DRender::QGeometryRenderer 하위 클래스에서도 사용할 수 있습니다.
속성 설명
[read-only] indexAttribute : Qt3DCore::QAttribute* const
지오메트리 인덱스 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
지오메트리 법선 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
지오메트리 위치 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | positionAttribute() const |
[read-only] tangentAttribute : Qt3DCore::QAttribute* const
기하학적 도형의 접선 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
지오메트리 텍스처 좌표 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
xExtent : float
지오메트리의 x 방향 크기를 저장합니다.
액세스 함수:
| float | xExtent() const |
| void | setXExtent(float xExtent) |
알림 신호:
| void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
x-y 해상도를 지정합니다. 이 속성의 너비 및 높이 값은 메시의 x-y 면에 대해 생성되는 정점의 수를 지정합니다.
액세스 함수:
| QSize | xyMeshResolution() const |
| void | setXYMeshResolution(const QSize &resolution) |
알림 신호:
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
x-z 방향의 해상도를 지정합니다. 이 속성의 너비 및 높이 값은 메시의 x-z 면에 대해 생성되는 정점의 수를 지정합니다.
액세스 함수:
| QSize | xzMeshResolution() const |
| void | setXZMeshResolution(const QSize &resolution) |
알림 신호:
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
yExtent : float
지오메트리의 y 방향 길이를 저장합니다.
액세스 함수:
| float | yExtent() const |
| void | setYExtent(float yExtent) |
알림 신호:
| void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
y-z 해상도를 지정합니다. 이 속성의 너비 및 높이 값은 메쉬의 y-z 면에 대해 생성되는 정점의 수를 지정합니다.
액세스 함수:
| QSize | yzMeshResolution() const |
| void | setYZMeshResolution(const QSize &resolution) |
알림 신호:
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
zExtent : float
지오메트리의 z 방향 크기를 저장합니다.
액세스 함수:
| float | zExtent() const |
| void | setZExtent(float zExtent) |
알림 신호:
| void | zExtentChanged(float zExtent) |
멤버 함수 문서
[explicit] QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새로운 QCuboidGeometry를 생성합니다.
void QCuboidGeometry::updateIndices()
메시 해상도에 따라 인덱스를 업데이트합니다.
void QCuboidGeometry::updateVertices()
메시 해상도에 따라 정점을 업데이트합니다.
© 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.