QSphereGeometry Class
class Qt3DExtras::QSphereGeometry3D 공간에서 구를 생성할 수 있는 QSphereGeometry 클래스입니다. 더 보기...
Header: | #include <Qt3DExtras/QSphereGeometry> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
QML에서: | SphereGeometry |
상속합니다: | Qt3DCore::QGeometry |
상태: | Deprecated |
속성
|
|
공용 기능
QSphereGeometry(Qt3DCore::QNode *parent = nullptr) | |
bool | generateTangents() const |
Qt3DCore::QAttribute * | indexAttribute() const |
Qt3DCore::QAttribute * | normalAttribute() const |
Qt3DCore::QAttribute * | positionAttribute() const |
float | radius() const |
int | rings() const |
int | slices() const |
Qt3DCore::QAttribute * | tangentAttribute() const |
Qt3DCore::QAttribute * | texCoordAttribute() const |
void | updateIndices() |
void | updateVertices() |
공용 슬롯
void | setGenerateTangents(bool gen) |
void | setRadius(float radius) |
void | setRings(int rings) |
void | setSlices(int slices) |
신호
void | generateTangentsChanged(bool generateTangents) |
void | radiusChanged(float radius) |
void | ringsChanged(int rings) |
void | slicesChanged(int slices) |
상세 설명
QSphereGeometry 클래스는 QSphereMesh 에서 내부적으로 가장 일반적으로 사용되지만, 커스텀 Qt3DRender::QGeometryRenderer 서브클래스에서도 사용할 수 있습니다.
프로퍼티 문서
generateTangents : bool
자동 탄젠트 벡터 생성 플래그의 값을 보유합니다. 탄젠트 벡터는 일반 벡터에 직교합니다.
함수에 액세스합니다:
bool | generateTangents() const |
void | setGenerateTangents(bool gen) |
알림 신호:
void | generateTangentsChanged(bool generateTangents) |
[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 |
radius : float
구의 반지름을 보유합니다.
기능에 액세스합니다:
float | radius() const |
void | setRadius(float radius) |
알림 신호:
void | radiusChanged(float radius) |
rings : int
구의 고리 개수를 보유합니다.
기능에 액세스합니다:
int | rings() const |
void | setRings(int rings) |
알림 신호:
void | ringsChanged(int rings) |
slices : int
구의 슬라이스 수를 보유합니다.
기능에 액세스합니다:
int | slices() const |
void | setSlices(int slices) |
알림 신호:
void | slicesChanged(int slices) |
[read-only]
tangentAttribute : Qt3DCore::QAttribute* const
지오메트리 접선 속성을 보유합니다.
함수에 액세스합니다:
Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only]
texCoordAttribute : Qt3DCore::QAttribute* const
지오메트리 텍스처 좌표 속성을 보유합니다.
액세스 함수입니다:
Qt3DCore::QAttribute * | texCoordAttribute() const |
멤버 함수 문서
[explicit]
QSphereGeometry::QSphereGeometry(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새 QSphereGeometry를 구축합니다.
void QSphereGeometry::updateIndices()
링 및 슬라이스 속성을 기반으로 인덱스를 업데이트합니다.
void QSphereGeometry::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.