QAbstractClipAnimator Class

(Qt3DAnimation::QAbstractClipAnimator)

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

头文件: #include <QAbstractClipAnimator>
qmake: QT += 3danimation
开始支持版本: Qt 5.9
Instantiated By: AbsractClipAnimator
基类: 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)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

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

Subclasses of 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)

Notifier signal:

void channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper)

loops : int

访问函数:

int loopCount() const
void setLoopCount(int loops)

Notifier signal:

void loopCountChanged(int loops)

running : bool

访问函数:

bool isRunning() const
void setRunning(bool running)

Notifier signal:

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.