QClipAnimator Class

class Qt3DAnimation ::QClipAnimator

QClipAnimator is a component providing simple animation playback capabilities. 更多...

头: #include <QClipAnimator>
qmake: QT += 3danimation
Since: Qt 5.9
实例化: ClipAnimator
继承: Qt3DAnimation::QAbstractClipAnimator

该类在 Qt 5.9 引入。

特性

  • clip : Qt3DAnimation::QAbstractAnimationClip*

公共函数

Qt3DAnimation::QAbstractAnimationClip * clip () const

公共槽

void setClip (Qt3DAnimation::QAbstractAnimationClip * clip )

信号

void clipChanged (Qt3DAnimation::QAbstractAnimationClip * clip )

详细描述

An instance of QClipAnimator can be aggregated by a QEntity to add the ability to play back animation clips and to apply the calculated animation values to properties of QObjects.

The animation key frame data is provided via the clip property. This can be created programmatically with QAnimationClip or loaded from file with QAnimationClipLoader .

In order to apply the values played back from the channels of data in the animation clip, the clip animator needs to have a QChannelMapper object assigned to the channelMapper 特性。

The properties for controlling the animator are provided by the QAbstractClipAnimator 基类。

另请参阅 Qt3DAnimation::QAbstractClipAnimator , Qt3DAnimation::QAbstractAnimationClip , Qt3DAnimation::QChannelMapper ,和 Qt3DAnimation::QBlendedClipAnimator .

特性文档编制

clip : Qt3DAnimation::QAbstractAnimationClip *

This property holds the animation clip which contains the key frame data to be played back. The key frame data can be specified in either a QAnimationClip or QAnimationClipLoader .

访问函数:

Qt3DAnimation::QAbstractAnimationClip * clip () const
void setClip (Qt3DAnimation::QAbstractAnimationClip * clip )

通知程序信号:

void clipChanged (Qt3DAnimation::QAbstractAnimationClip * clip )