QMorphTarget Class

class Qt3DAnimation::QMorphTarget

블렌드 셰이프 애니메이션에 모프 타깃을 제공하는 클래스입니다. 더 보기...

Header: #include <QMorphTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
QML에서: MorphTarget
상속합니다: QObject
상태: Deprecated

속성

공공 기능

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 : const 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 을 모프 대상으로 설정합니다. 이전 속성은 지워집니다.

© 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.