内容表

上一话题

Qt3DAnimation.QKeyFrame

下一话题

Qt3DAnimation.QLerpClipBlend

Qt3DAnimation.QKeyframeAnimation

A class implementing simple keyframe animation to a QTransform . 更多

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation

概要

函数

信号

详细描述

A QKeyframeAnimation class implements simple keyframe animation that can be used to animate QTransform . The keyframes consists of multiple timed QTransforms, which are interpolated and applied to the target QTransform . QEasingCurve is used between keyframes to control the interpolator. RepeatMode can be set for when the position set to the QKeyframeAnimation is below or above the values defined in the keyframe positions.

class PySide2.Qt3DAnimation.Qt3DAnimation. QKeyframeAnimation ( [ parent=None ] )
param parent

QObject

Constructs an QKeyframeAnimation with parent .

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. RepeatMode

This enumeration specifies how position values outside keyframe values are handled.

常量

描述

Qt3DAnimation.QKeyframeAnimation.None

The animation is not applied to the target transform.

Qt3DAnimation.QKeyframeAnimation.Constant

The edge keyframe value is used.

Qt3DAnimation.QKeyframeAnimation.Repeat

The animation is repeated.

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. addKeyframe ( keyframe )
参数

keyframe QTransform

Adds new keyframe at the end of the animation. The QTransform can be added to the animation multiple times.

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. easing ( )
返回类型

QEasingCurve

另请参阅

setEasing()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. easingChanged ( easing )
参数

easing QEasingCurve

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. endMode ( )
返回类型

RepeatMode

另请参阅

setEndMode()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. endModeChanged ( endMode )
参数

endMode RepeatMode

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. framePositions ( )
返回类型

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. framePositionsChanged ( positions )
参数

positions

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. keyframeList ( )
返回类型

Returns the list of keyframes.

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. removeKeyframe ( keyframe )
参数

keyframe QTransform

Removes a keyframe from the animation. If the same QTransform is set as keyframe multiple times, all occurrences are removed.

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setEasing ( easing )
参数

easing QEasingCurve

另请参阅

easing()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setEndMode ( mode )
参数

mode RepeatMode

另请参阅

endMode()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setFramePositions ( positions )
参数

positions

另请参阅

framePositions()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setKeyframes ( keyframes )
参数

keyframes

设置 keyframes of the animation. Old keyframes are cleared.

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setStartMode ( mode )
参数

mode RepeatMode

另请参阅

startMode()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setTarget ( target )
参数

target QTransform

另请参阅

target()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. setTargetName ( name )
参数

name – unicode

另请参阅

targetName()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. startMode ( )
返回类型

RepeatMode

另请参阅

setStartMode()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. startModeChanged ( startMode )
参数

startMode RepeatMode

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. target ( )
返回类型

QTransform

另请参阅

setTarget()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. targetChanged ( target )
参数

target QTransform

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. targetName ( )
返回类型

unicode

另请参阅

setTargetName()

PySide2.Qt3DAnimation.Qt3DAnimation.QKeyframeAnimation. targetNameChanged ( name )
参数

name – unicode