QAbstractClipAnimatoris the base class for types providing animation playback capabilities. 更多 …
继承者: Qt3DAnimation.QBlendedClipAnimator , Qt3DAnimation.QClipAnimator
def
clock
()
def
isRunning
()
def
loopCount
()
def
normalizedTime
()
def
setClock
(clock)
def
setLoopCount
(loops)
def
setNormalizedTime
(timeFraction)
def
setRunning
(running)
def
start
()
def
stop
()
def
clockChanged
(clock)
def
loopCountChanged
(loops)
def
normalizedTimeChanged
(index)
def
runningChanged
(running)
子类化的
QAbstractClipAnimatorcan 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 aQAbstractAnimationClipas well as aQChannelMapperwhich 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
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
另请参阅
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.
另请参阅
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
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.
setLoopCount
(
loops
)
¶
loops
–
int
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.
setNormalizedTime
(
timeFraction
)
¶
timeFraction
–
float
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.
setRunning
(
running
)
¶
running
–
bool
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.
start
(
)
¶
Starts the animation.
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractClipAnimator.
stop
(
)
¶
Stops the animation.