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:
访问函数:
Qt3DAnimation::QChannelMapper * | channelMapper () const |
void | setChannelMapper (Qt3DAnimation::QChannelMapper * channelMapper ) |
通知程序信号:
void | channelMapperChanged (Qt3DAnimation::QChannelMapper * channelMapper ) |
访问函数:
int | loopCount () const |
void | setLoopCount (int loops ) |
通知程序信号:
void | loopCountChanged (int loops ) |
访问函数:
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.
Destroys the instance of QAbstractClipAnimator.
[slot]
void
QAbstractClipAnimator::
start
()
Starts the animation.
[slot]
void
QAbstractClipAnimator::
stop
()
Stops the animation.