QAbstractAnimation¶
An abstract base class for Qt3D animations. More…
Inherited by: QVertexBlendAnimation, QMorphingAnimation, QKeyframeAnimation
Synopsis¶
Functions¶
def
animationName
()def
animationType
()def
duration
()def
position
()def
setDuration
(duration)
Slots¶
def
setAnimationName
(name)def
setPosition
(position)
Signals¶
def
animationNameChanged
(name)def
durationChanged
(duration)def
positionChanged
(position)
Detailed Description¶
QAbstractAnimation
is an abstract base class for all animations. QAbstractAnimation
can not be directly instantiated, but rather through its subclasses. QAbstractAnimation
specifies common properties for all Qt3D animations, such as animation name and type, current position and animation duration, while leaving the actual animating for the subclasses.
- class PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation¶
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.AnimationType¶
This enumeration specifies the type of the animation
Constant
Description
Qt3DAnimation.QAbstractAnimation.KeyframeAnimation
Simple keyframe animation implementation for
QTransform
Qt3DAnimation.QAbstractAnimation.MorphingAnimation
Blend-shape morphing animation
Qt3DAnimation.QAbstractAnimation.VertexBlendAnimation
Vertex-blend animation
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationName()¶
- Return type
str
Holds the name of the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationNameChanged(name)¶
- Parameters
name – str
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationType()¶
- Return type
Holds the type of the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.duration()¶
- Return type
float
Holds the duration of the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.durationChanged(duration)¶
- Parameters
duration – float
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.position()¶
- Return type
float
Holds the current position of the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.positionChanged(position)¶
- Parameters
position – float
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setAnimationName(name)¶
- Parameters
name – str
Holds the name of the animation.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setDuration(duration)¶
- Parameters
duration – float
Sets the duration
of the animation.
See also
duration()
- PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setPosition(position)¶
- Parameters
position – float
Holds the current position of 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.