Qt3DAnimation.QAbstractClipAnimator

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

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator

继承者: Qt3DAnimation.QBlendedClipAnimator , Qt3DAnimation.QClipAnimator

概要

信号

详细描述

子类化的 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 ] )
参数

parent QNode

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. Loops

Holds the number of times the animation should play.

常量

描述

Qt3DAnimation.QAbstractClipAnimator.Infinite

This will repeat the loop continuously until it is explicitly stopped.

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. clock ( )
返回类型

QClock

另请参阅

setClock()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. clockChanged ( clock )
参数

clock QClock

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. isRunning ( )
返回类型

bool

Returns a boolean indicating whether the animation is currently running.

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. loopCount ( )
返回类型

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.

若设为 Infinite , the animation will continuously repeat until it is explicitly stopped.

另请参阅

setLoopCount()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. loopCountChanged ( loops )
参数

loops int

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. normalizedTime ( )
返回类型

float

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. normalizedTimeChanged ( index )
参数

index float

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. runningChanged ( running )
参数

running bool

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. setClock ( clock )
参数

clock QClock

另请参阅

clock()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. setLoopCount ( loops )
参数

loops int

另请参阅

loopCount()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. setNormalizedTime ( timeFraction )
参数

timeFraction float

另请参阅

normalizedTime()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. setRunning ( running )
参数

running bool

另请参阅

isRunning()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. start ( )

Starts the animation.

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator. stop ( )

Stops the animation.