QClipAnimator Class

(Qt3DAnimation::QClipAnimator)

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

头文件: #include <QClipAnimator>
qmake: QT += 3danimation
开始支持版本: Qt 5.9
Instantiated By: 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 property.

The properties for controlling the animator are provided by the QAbstractClipAnimator base class.

参见 QAbstractClipAnimator, QAbstractAnimationClip, QChannelMapper, and QBlendedClipAnimator.

属性

clip : Qt3DAnimation::QAbstractAnimationClip *

访问函数:

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

Notifier signal:

void clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip)

成员函数

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

Default constructs an instance of QClipAnimator.

QClipAnimator::~QClipAnimator()

Destroys the instance of QClipAnimator.