QAbstractClipAnimator¶
QAbstractClipAnimator
is the base class for types providing animation playback capabilities. More…
Inherited by: QBlendedClipAnimator, QClipAnimator
Synopsis¶
Functions¶
def
clock
()def
isRunning
()def
loopCount
()def
normalizedTime
()
Slots¶
def
setClock
(clock)def
setLoopCount
(loops)def
setNormalizedTime
(timeFraction)def
setRunning
(running)def
start
()def
stop
()
Signals¶
def
clockChanged
(clock)def
loopCountChanged
(loops)def
normalizedTimeChanged
(index)def
runningChanged
(running)
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 aQAbstractAnimationClip
as well as aQChannelMapper
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:
QClipAnimator
QBlendedClipAnimator
- class PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator([parent=None])¶
- Parameters:
parent –
PySide2.Qt3DCore.Qt3DCore.QNode
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.Loops¶
Holds the number of times the animation should play.
Constant
Description
Qt3DAnimation.QAbstractClipAnimator.Infinite
This will repeat the loop continuously until it is explicitly stopped.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clock()¶
- Return type:
The clock controls the speed with which an animation is played.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clockChanged(clock)¶
- Parameters:
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.isRunning()¶
- Return type:
bool
This property holds a boolean indicating whether the animation is currently running.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.loopCount()¶
- Return type:
int
Holds the number of times the animation should play.
The value is 1 by default: the animation will be played once and then stop.
If set to
Infinite
, the animation will continuously repeat until it is explicitly stopped.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.loopCountChanged(loops)¶
- Parameters:
loops – int
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTime()¶
- Return type:
float
This property holds the clips normalized time.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTimeChanged(index)¶
- Parameters:
index – float
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.runningChanged(running)¶
- Parameters:
running – bool
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setClock(clock)¶
- Parameters:
The clock controls the speed with which an animation is played.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setLoopCount(loops)¶
- Parameters:
loops – int
Holds the number of times the animation should play.
The value is 1 by default: the animation will be played once and then stop.
If set to
Infinite
, the animation will continuously repeat until it is explicitly stopped.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setNormalizedTime(timeFraction)¶
- Parameters:
timeFraction – float
This property holds the clips normalized time.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setRunning(running)¶
- Parameters:
running – bool
This property holds a boolean indicating whether the animation is currently running.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.start()¶
Starts the animation.
- PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.stop()¶
Stops the animation.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.