QAbstractClipAnimator#
QAbstractClipAnimator
is the base class for types providing animation playback capabilities. More…
Inherited by: QClipAnimator, QBlendedClipAnimator
Synopsis#
Properties#
Functions#
def
channelMapper
()def
clock
()def
isRunning
()def
loopCount
()def
normalizedTime
()
Slots#
def
setChannelMapper
(channelMapper)def
setClock
(clock)def
setLoopCount
(loops)def
setNormalizedTime
(timeFraction)def
setRunning
(running)def
start
()def
stop
()
Signals#
def
channelMapperChanged
(channelMapper)def
clockChanged
(clock)def
loopCountChanged
(loops)def
normalizedTimeChanged
(index)def
runningChanged
(running)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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:
QClipAnimator
QBlendedClipAnimator
- class PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.channelMapper: PySide6.Qt3DAnimation.Qt3DAnimation.QChannelMapper#
This property holds the ChannelMapper that controls how the channels in the animation clip map onto the properties of the target objects.
- Access functions:
setChannelMapper
(channelMapper)Signal
channelMapperChanged
(channelMapper)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clock: PySide6.Qt3DAnimation.Qt3DAnimation.QClock#
The clock controls the speed with which an animation is played.
- Access functions:
clock
()setClock
(clock)Signal
clockChanged
(clock)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.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.
- Access functions:
loopCount
()setLoopCount
(loops)Signal
loopCountChanged
(loops)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTime: float#
This property holds the clips normalized time.
- Access functions:
setNormalizedTime
(timeFraction)Signal
normalizedTimeChanged
(index)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.running: bool#
This property holds a boolean indicating whether the animation is currently running.
- Access functions:
isRunning
()setRunning
(running)Signal
runningChanged
(running)
- PySide6.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.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.channelMapper()#
- Return type:
See also
Getter of property channelMapper
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.channelMapperChanged(channelMapper)#
- Parameters:
channelMapper –
PySide6.Qt3DAnimation.Qt3DAnimation.QChannelMapper
Notification signal of property channelMapper
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clock()#
- Return type:
See also
Getter of property clock
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clockChanged(clock)#
- Parameters:
Notification signal of property clock
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.isRunning()#
- Return type:
bool
Returns a boolean indicating whether the animation is currently running.
Getter of property running
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.loopCount()#
- Return type:
int
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 Infinite
, the animation will continuously repeat until it is explicitly stopped.
See also
Getter of property loops
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.loopCountChanged(loops)#
- Parameters:
loops – int
Notification signal of property loops
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTime()#
- Return type:
float
See also
Getter of property normalizedTime
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTimeChanged(index)#
- Parameters:
index – float
Notification signal of property normalizedTime
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.runningChanged(running)#
- Parameters:
running – bool
Notification signal of property running
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setChannelMapper(channelMapper)#
- Parameters:
channelMapper –
PySide6.Qt3DAnimation.Qt3DAnimation.QChannelMapper
See also
Setter of property channelMapper
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setClock(clock)#
- Parameters:
See also
Setter of property clock
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setLoopCount(loops)#
- Parameters:
loops – int
See also
Setter of property loops
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setNormalizedTime(timeFraction)#
- Parameters:
timeFraction – float
See also
Setter of property normalizedTime
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setRunning(running)#
- Parameters:
running – bool
See also
Setter of property running
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.start()#
Starts the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.stop()#
Stops the animation.