用于 Qt3D 动画的抽象基类。 更多 …
继承者: Qt3DAnimation.QKeyframeAnimation , Qt3DAnimation.QMorphingAnimation , Qt3DAnimation.QVertexBlendAnimation
def
animationName
()
def
animationType
()
def
duration
()
def
position
()
def
setDuration
(duration)
def
setAnimationName
(name)
def
setPosition
(position)
def
animationNameChanged
(name)
def
durationChanged
(duration)
def
positionChanged
(position)
QAbstractAnimationis an abstract base class for all animations.QAbstractAnimationcan not be directly instantiated, but rather through its subclasses.QAbstractAnimationspecifies 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.
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
AnimationType
¶
此枚举指定动画的类型
|
常量 |
描述 |
|---|---|
|
Qt3DAnimation.QAbstractAnimation.KeyframeAnimation |
Simple keyframe animation implementation for
|
|
Qt3DAnimation.QAbstractAnimation.MorphingAnimation |
融合形状变形动画 |
|
Qt3DAnimation.QAbstractAnimation.VertexBlendAnimation |
Vertex-blend animation |
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
animationName
(
)
¶
unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
animationNameChanged
(
name
)
¶
name – unicode
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
animationType
(
)
¶
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
duration
(
)
¶
float
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
durationChanged
(
duration
)
¶
duration
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
position
(
)
¶
float
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
positionChanged
(
position
)
¶
position
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
setAnimationName
(
name
)
¶
name – unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
setDuration
(
duration
)
¶
duration
–
float
设置
duration
为动画。
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.
setPosition
(
position
)
¶
position
–
float
另请参阅