Qt3DExtras::QTorusGeometry Class
class Qt3DExtras::QTorusGeometryQTorusGeometry 클래스를 사용하면 3차원 공간에서 토러스를 생성할 수 있습니다. 더 보기...
| 헤더: | #include <Qt3DExtras/QTorusGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| QML에서: | TorusGeometry |
| 상속: | Qt3DCore::QGeometry |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
|
|
공개 함수
| QTorusGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| float | minorRadius() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| float | radius() const |
| int | rings() const |
| int | slices() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
공개 슬롯
| void | setMinorRadius(float minorRadius) |
| void | setRadius(float radius) |
| void | setRings(int rings) |
| void | setSlices(int slices) |
신호
| void | minorRadiusChanged(float minorRadius) |
| void | radiusChanged(float radius) |
| void | ringsChanged(int rings) |
| void | slicesChanged(int slices) |
상세 설명
QTorusGeometry 클래스는 주로 QTorusMesh 에서 내부적으로 사용되지만, 사용자 정의 Qt3DRender::QGeometryRenderer 하위 클래스에서도 사용할 수 있습니다.
속성 설명
[read-only] indexAttribute : Qt3DCore::QAttribute* const
지오메트리 인덱스 속성을 포함합니다.
액세스 함수:
| Qt3DCore::QAttribute * | indexAttribute() const |
minorRadius : float
토러스의 내반경을 저장합니다.
액세스 함수:
| float | minorRadius() const |
| void | setMinorRadius(float minorRadius) |
알림 신호:
| void | minorRadiusChanged(float minorRadius) |
[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] texCoordAttribute : Qt3DCore::QAttribute* const
지오메트리 텍스처 좌표 속성을 저장합니다.
액세스 함수:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
멤버 함수 설명서
[explicit] QTorusGeometry::QTorusGeometry(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새로운 QTorusGeometry 객체를 생성합니다.
void QTorusGeometry::updateIndices()
링 및 슬라이스의 속성을 기반으로 인덱스를 업데이트합니다.
void QTorusGeometry::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.