Qt3DAnimation::QClipAnimator Class
class Qt3DAnimation::QClipAnimatorQClipAnimator 是一个提供简单动画播放功能的组件。更多
头文件: | #include <QClipAnimator> |
CMake.QClipAnimator | 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) |
详细说明
QEntity 可以聚合 QClipAnimator 的实例,以增加播放动画片段的功能,并将计算出的动画值应用到 QObject 的属性中。
动画关键帧数据通过剪辑属性提供。该数据可通过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) |
© 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.