QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryQCuboidGeometry 클래스를 사용하면 3D 공간에서 직육면체를 만들 수 있습니다. 더 보기...
Header: | #include <Qt3DExtras/QCuboidGeometry> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
QML에서: | CuboidGeometry |
상속합니다: | Qt3DCore::QGeometry |
상태: | Deprecated |
속성
|
|
공용 기능
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()
메시 해상도에 따라 버텍스를 업데이트합니다.
© 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.