QClipAnimator is a component providing simple animation playback capabilities. 更多...
头: | #include <QClipAnimator> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
实例化: | ClipAnimator |
继承: | Qt3DAnimation::QAbstractClipAnimator |
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.
实例化的 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 .
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 ) |
Default constructs an instance of QClipAnimator.
Destroys the instance of QClipAnimator.