Qt3DCore::QGeometry Class
class Qt3DCore::QGeometry기하학적 객체를 캡슐화합니다. 더 보기...
| 헤더: | #include <QGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| QML에서: | Geometry |
| 상속: | Qt3DCore::QNode |
| 상속받는 클래스: | Qt3DExtras::QConeGeometry, Qt3DExtras::QCuboidGeometry, Qt3DExtras::QCylinderGeometry, Qt3DExtras::QExtrudedTextGeometry, Qt3DExtras::QPlaneGeometry, Qt3DExtras::QSphereGeometry 및 Qt3DExtras::QTorusGeometry |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
- boundingVolumePositionAttribute : Qt3DCore::QAttribute*
- maxExtent : QVector3D
- minExtent : QVector3D
공개 함수
| QGeometry(Qt3DCore::QNode *parent = nullptr) | |
| void | addAttribute(Qt3DCore::QAttribute *attribute) |
| QList<Qt3DCore::QAttribute *> | attributes() const |
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| QVector3D | maxExtent() const |
| QVector3D | minExtent() const |
| void | removeAttribute(Qt3DCore::QAttribute *attribute) |
공개 슬롯
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
신호
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
| void | maxExtentChanged(const QVector3D &maxExtent) |
| void | minExtentChanged(const QVector3D &minExtent) |
상세 설명
Qt3DCore::QGeometry 클래스는 Qt3DCore::QAttribute 객체 목록을 그룹화하여 Qt3D가 Qt3DCore::QGeometryRenderer를 사용하여 렌더링할 수 있는 기하학적 도형을 형성하는 데 사용됩니다. 도형의 바운딩 볼륨을 계산하기 위해 특수 속성을 설정할 수 있습니다.
속성 문서
boundingVolumePositionAttribute : Qt3DCore::QAttribute*
바운딩 볼륨을 계산하는 데 사용되는 속성을 보관합니다. 바운딩 볼륨은 내부적으로 피킹 및 뷰 프러스텀 컬링에 사용됩니다.
지정되지 않은 경우, 시스템은 ` QAttribute::defaultPositionAttributeName` 함수가 반환한 이름을 사용하여 해당 속성을 찾습니다.
액세스 함수:
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
알림 신호:
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
Qt3DCore::QAttribute도 참조하십시오 .
[read-only] maxExtent : QVector3D
x, y, z 좌표 값이 가장 큰 정점을 반환합니다.
액세스 함수:
| QVector3D | maxExtent() const |
알림 신호:
| void | maxExtentChanged(const QVector3D &maxExtent) |
[read-only] minExtent : QVector3D
x, y, z 좌표 값이 가장 작은 정점을 반환합니다.
액세스 함수:
| QVector3D | minExtent() const |
알림 신호:
| void | minExtentChanged(const QVector3D &minExtent) |
멤버 함수 문서
[explicit] QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새로운 QGeometry 객체를 생성합니다.
[invokable] void QGeometry::addAttribute(Qt3DCore::QAttribute *attribute)
이 지오메트리에 ` attribute `을 추가합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
QList<Qt3DCore::QAttribute *> QGeometry::attributes() const
이 지오메트리에 포함된 속성 목록을 반환합니다.
[invokable] void QGeometry::removeAttribute(Qt3DCore::QAttribute *attribute)
지정된 attribute 를 이 지오메트리에서 제거합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
© 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.