Qt3DAnimation.QAbstractClipAnimator

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

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator

Inherited by: Qt3DAnimation.QBlendedClipAnimator, Qt3DAnimation.QClipAnimator

Synopsis

Functions

Slots

Signals

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 PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator([parent=None])
Parameters

parentQNode

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

QClock

See also

setClock()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.clockChanged(clock)
Parameters

clockQClock

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.isRunning()
Return type

bool

Returns a boolean indicating whether the animation is currently running.

PySide2.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

setLoopCount()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.loopCountChanged(loops)
Parameters

loopsint

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTime()
Return type

float

See also

setNormalizedTime()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.normalizedTimeChanged(index)
Parameters

indexfloat

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.runningChanged(running)
Parameters

runningbool

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setClock(clock)
Parameters

clockQClock

See also

clock()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setLoopCount(loops)
Parameters

loopsint

See also

loopCount()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setNormalizedTime(timeFraction)
Parameters

timeFractionfloat

See also

normalizedTime()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.setRunning(running)
Parameters

runningbool

See also

isRunning()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.start()

Starts the animation.

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.stop()

Stops the animation.