Q3DObject Class
Q3DObject 클래스는 3D 장면 내의 모든 객체를 위한 간단한 기본 클래스입니다. 더 보기...
| 헤더: | #include <Q3DObject> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| 출시일: | QtDataVisualization 1.0 |
| QML에서: | Object3D |
| 상속: | QObject |
| 상속받는 클래스: | |
| 상태: | 사용 중단 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
- parentScene : Q3DScene*
- position : QVector3D
공개 함수
| Q3DObject(QObject *parent = nullptr) | |
| virtual | ~Q3DObject() |
| virtual void | copyValuesFrom(const Q3DObject &source) |
| Q3DScene * | parentScene() |
| QVector3D | position() const |
| void | setPosition(const QVector3D &position) |
신호
| void | positionChanged(const QVector3D &position) |
보호된 함수
속성 설명
[read-only] parentScene : Q3DScene*
이 속성은 상위 씬을 읽기 전용 값으로 저장합니다.
객체에 상위 씬이 없는 경우, 이 값은 0입니다.
액세스 함수:
| Q3DScene * | parentScene() |
position : QVector3D
이 속성은 오브젝트의 3D 위치를 저장합니다.
참고: 현재 Q3DCamera의 경우 위치가 내부적으로 처리되므로 이 속성을 설정해도 아무런 효과가 없습니다.
액세스 함수:
| QVector3D | position() const |
| void | setPosition(const QVector3D &position) |
알림 신호:
| void | positionChanged(const QVector3D &position) |
멤버 함수 문서
[explicit] Q3DObject::Q3DObject(QObject *parent = nullptr)
기본적으로 위치를 원점으로 설정하여 새로운 3D 객체를 생성합니다. 선택 사항인 ` parent ` 매개변수를 지정할 수 있으며, 이 경우 해당 매개변수는 ` QObject ` 생성자에 전달됩니다.
[virtual noexcept] Q3DObject::~Q3DObject()
3D 객체를 삭제합니다.
[virtual] void Q3DObject::copyValuesFrom(const Q3DObject &source)
지정된 source 3D 객체의 위치를 이 3D 객체 인스턴스로 복사합니다.
[protected] bool Q3DObject::isDirty() const
3D 객체가 변경되었는지 여부를 반환합니다.
[protected] void Q3DObject::setDirty(bool dirty)
마지막 업데이트 이후 3D 객체가 변경된 경우, ` dirty `를 ` true `로 설정합니다.
isDirty()도 참조하십시오 .
© 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.