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 )