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.