QAbstractClipAnimator Class

( Qt3DAnimation::QAbstractClipAnimator )

QAbstractClipAnimator is the base class for types providing animation playback capabilities. 更多...

头: #include <QAbstractClipAnimator>
qmake: QT += 3danimation
Since: Qt 5.9
实例化: AbstractClipAnimator
继承: Qt3DCore::QComponent
继承者: Qt3DAnimation::QBlendedClipAnimator and Qt3DAnimation::QClipAnimator

公共类型

enum Loops { Infinite }

特性

公共函数

~QAbstractClipAnimator ()
Qt3DAnimation::QChannelMapper * channelMapper () const
bool isRunning () const
int loopCount () const

公共槽

void setChannelMapper (Qt3DAnimation::QChannelMapper * channelMapper )
void setLoopCount (int loops )
void setRunning (bool running )
void start ()
void stop ()

信号

void channelMapperChanged (Qt3DAnimation::QChannelMapper * channelMapper )
void loopCountChanged (int loops )
void runningChanged (bool running )

保护函数

QAbstractClipAnimator (Qt3DCore::QNode * parent = nullptr)
QAbstractClipAnimator (QAbstractClipAnimatorPrivate & dd , Qt3DCore::QNode * parent = nullptr)

额外继承成员

详细描述

QAbstractClipAnimator is the base class for types providing animation playback capabilities.

子类化的 QAbstractClipAnimator can be aggregated by a QEntity to provide animation capabilities. The animator components provide an interface for controlling the animation (e.g. start, stop). Each animator type requires some form of animation data such as a QAbstractAnimationClip as well as a QChannelMapper which describes how the channels in the animation clip should be mapped onto the properties of the objects you wish to animate.

The following subclasses are available:

成员类型文档编制

enum QAbstractClipAnimator:: Loops

特性文档编制

channelMapper : Qt3DAnimation::QChannelMapper *

访问函数:

Qt3DAnimation::QChannelMapper * channelMapper () const
void setChannelMapper (Qt3DAnimation::QChannelMapper * channelMapper )

通知程序信号:

void channelMapperChanged (Qt3DAnimation::QChannelMapper * channelMapper )

loops : int

访问函数:

int loopCount () const
void setLoopCount (int loops )

通知程序信号:

void loopCountChanged (int loops )

running : bool

访问函数:

bool isRunning () const
void setRunning (bool running )

通知程序信号:

void runningChanged (bool running )

成员函数文档编制

[protected] QAbstractClipAnimator:: QAbstractClipAnimator ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QAbstractClipAnimator.

[protected] QAbstractClipAnimator:: QAbstractClipAnimator ( QAbstractClipAnimatorPrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

QAbstractClipAnimator:: ~QAbstractClipAnimator ()

Destroys the instance of QAbstractClipAnimator.

[slot] void QAbstractClipAnimator:: start ()

Starts the animation.

[slot] void QAbstractClipAnimator:: stop ()

Stops the animation.