QClipAnimator Class

( Qt3DAnimation::QClipAnimator )

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

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

特性

  • clip : Qt3DAnimation::QAbstractAnimationClip *

公共函数

QClipAnimator (Qt3DCore::QNode * parent = nullptr)
~QClipAnimator ()
Qt3DAnimation::QAbstractAnimationClip * clip () const

公共槽

void setClip (Qt3DAnimation::QAbstractAnimationClip * clip )

信号

void clipChanged (Qt3DAnimation::QAbstractAnimationClip * clip )

额外继承成员

详细描述

QClipAnimator is a component providing simple animation playback capabilities.

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 基类。

另请参阅 QAbstractClipAnimator , QAbstractAnimationClip , QChannelMapper ,和 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 )

成员函数文档编制

QClipAnimator:: QClipAnimator ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QClipAnimator.

QClipAnimator:: ~QClipAnimator ()

Destroys the instance of QClipAnimator.