Qt3DAnimation::QClipAnimator Class
class Qt3DAnimation::QClipAnimatorQClipAnimator는 간단한 애니메이션 재생 기능을 제공하는 컴포넌트입니다. 더 보기...
| 헤더: | #include <qclipanimator.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| QML에서: | ClipAnimator |
| 상속: | Qt3DAnimation::QAbstractClipAnimator |
| 상태: | 기술 미리보기 |
이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.
속성
- clip : Qt3DAnimation::QAbstractAnimationClip*
공개 함수
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
공개 슬롯
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
신호
| void | clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip) |
상세 설명
QClipAnimator 인스턴스는 QEntity에 의해 집합화되어 애니메이션 클립을 재생하고, 계산된 애니메이션 값을 QObject의 속성에 적용하는 기능을 추가할 수 있습니다.
애니메이션 키 프레임 데이터는 clip 속성을 통해 제공됩니다. 이는 QAnimationClip 을 사용하여 프로그래밍 방식으로 생성하거나 QAnimationClipLoader 을 사용하여 파일에서 불러올 수 있습니다.
애니메이션 클립의 데이터 채널에서 재생된 값을 적용하려면, 클립 애니메이터의 channelMapper 속성에 QChannelMapper 객체가 할당되어 있어야 합니다.
애니메이터를 제어하는 속성들은 QAbstractClipAnimator 기본 클래스에서 제공됩니다.
Qt3DAnimation::QAbstractClipAnimator, Qt3DAnimation::QAbstractAnimationClip, Qt3DAnimation::QChannelMapper 및 Qt3DAnimation::QBlendedClipAnimator도 참조하십시오 .
속성 설명서
clip : Qt3DAnimation::QAbstractAnimationClip*
이 속성은 재생될 키 프레임 데이터가 포함된 애니메이션 클립을 저장합니다. 키 프레임 데이터는 ` QAnimationClip ` 또는 ` QAnimationClipLoader` 형식으로 지정할 수 있습니다.
액세스 함수:
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
알림 신호:
| void | clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip) |
© 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.