QAbstractClipAnimator Class
class Qt3DAnimation::QAbstractClipAnimatorQAbstractClipAnimator is the base class for types providing animation playback capabilities. More...
Header: | #include <QAbstractClipAnimator> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Instantiated By: | AbstractClipAnimator |
Inherits: | Qt3DCore::QComponent |
Inherited By: | Qt3DAnimation::QBlendedClipAnimator and Qt3DAnimation::QClipAnimator |
This class was introduced in Qt 5.9.
Public Types
enum | Loops { Infinite } |
Public Functions
Detailed Description
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:
Member Type Documentation
enum QAbstractClipAnimator::Loops
Holds the number of times the animation should play.
Constant | Value | Description |
---|---|---|
Qt3DAnimation::QAbstractClipAnimator::Infinite | -1 | This will repeat the loop continuously until it is explicitly stopped. |
Member Function Documentation
bool QAbstractClipAnimator::isRunning() const
Returns a boolean indicating whether the animation is currently running.
int QAbstractClipAnimator::loopCount() const
Returns the number of times the animation should play.
The value is 1 by default: the animation will play through once and then stop.
If set to QAbstractClipAnimator::Infinite, the animation will continuously repeat until it is explicitly stopped.
void QAbstractClipAnimator::start()
Starts the animation.
void QAbstractClipAnimator::stop()
Stops the animation.