Qt3DAnimation::QMorphTarget Class
class Qt3DAnimation::QMorphTarget블렌드 셰이프 애니메이션에 모프 타깃을 제공하는 클래스입니다. 더 보기...
| 헤더: | #include <qmorphtarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| QML에서: | MorphTarget |
| 상속: | QObject |
| 상태: | 기술 미리 보기 |
이 클래스는 기술 미리보기로 제공되며, 향후 변경될 수 있습니다.
속성
- attributeNames : QStringList
공개 함수
| QMorphTarget(QObject *parent = nullptr) | |
| void | addAttribute(Qt3DCore::QAttribute *attribute) |
| QList<Qt3DCore::QAttribute *> | attributeList() const |
| QStringList | attributeNames() const |
| void | removeAttribute(Qt3DCore::QAttribute *attribute) |
| void | setAttributes(const QList<Qt3DCore::QAttribute *> &attributes) |
신호
| void | attributeNamesChanged(const QStringList &attributeNames) |
정적 공용 멤버
| Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
상세 설명
Qt3DAnimation::QMorphTarget 클래스는 편의 클래스로, QMorphingAnimation 가 지오메트리를 애니메이션화하는 데 사용하는 QAttributes 목록을 제공합니다. 또한 기존 Qt3DCore::QGeometry 를 기반으로 QMorphTarget을 생성할 수도 있습니다.
속성 설명
[read-only] attributeNames : QStringList
모프 대상에 포함된 속성 이름 목록을 저장합니다.
액세스 함수:
| QStringList | attributeNames() const |
알림 신호:
| void | attributeNamesChanged(const QStringList &attributeNames) |
멤버 함수 문서
[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)
지정된 ` parent`를 사용하여 `QMorphTarget`을 생성합니다.
void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)
모프 대상에 ‘ attribute ’를 추가합니다. 모프 대상에 동일한 이름의 속성이 이전에 추가된 적이 없어야 합니다.
QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const
모프 대상에 포함된 속성들의 목록을 반환합니다.
[static invokable] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)
주어진 ` geometry` 내의 ` attributes `를 기반으로 모프 타깃을 반환합니다.
참고: 이 함수는 메타 객체 시스템 및 QML을 통해 호출할 수 있습니다. ` Q_INVOKABLE`을 참조하십시오.
void QMorphTarget::removeAttribute(Qt3DCore::QAttribute *attribute)
모프 타깃에서 ‘ attribute ’를 제거합니다.
void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)
attributes 를 모프 타깃으로 설정합니다. 기존 속성은 모두 지워집니다.
© 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.