AbstractClipAnimator QML Type
AbstractClipAnimator 是提供动画播放功能类型的基类。更多
Import Statement: | import Qt3D.Animation 2.9 |
In C++: | QAbstractClipAnimator |
Inherited By: | |
Status: | Deprecated |
属性
- channelMapper : ChannelMapper
- clock : Clock
- loops : int
- normalizedTime : real
- running : bool
详细说明
实体可以聚合 AbstractClipAnimator 的子类来提供动画功能。动画组件提供了一个控制动画(如开始、停止)的接口。每种动画器类型都需要某种形式的动画数据(如 AbstractAnimationClip)和通道映射器(ChannelMapper),后者描述了如何将动画片段中的通道映射到要制作动画的对象属性上。
以下是可用的子类:
- Qt3D.Animation.ChannelMapperClipAnimator
- Qt3D.Animation.Mapper(通道映射器)。BlendedClipAnimator
属性文档
channelMapper : ChannelMapper |
该属性包含通道映射器(ChannelMapper),用于控制动画剪辑中的通道如何映射到目标对象的属性上。
clock : Clock |
时钟控制动画播放的速度。
loops : int |
该属性用于设置动画的播放次数。
默认情况下,循环次数为 1:动画播放一次后停止。
如果设置为 QAbstractClipAnimator::Infinite,动画将不断重复播放,直到明确停止。
normalizedTime : real |
此属性保存片段的归一化时间。
running : bool |
该属性包含一个布尔值,表示动画当前是否正在运行。
© 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.