内容表

上一话题

Qt3DAnimation.QMorphTarget

下一话题

Qt3DAnimation.QSkeletonMapping

Qt3DAnimation.QMorphingAnimation

A class implementing blend-shape morphing animation. 更多

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation

概要

函数

信号

详细描述

A QMorphingAnimation class implements blend-shape morphing animation to a target QGeometryRenderer QMorphingAnimation sets the correct QAttributes morph targets to the target geometry and calculates interpolator for the current position. The actual blending between the attributes must be implemented in the material. Qt3DAnimation::QMorphPhongMaterial implements material with morphing support for phong lighting model. The blending happens between 2 attributes - ‘base’ and ‘target’. The names for the base and target attributes are taken from the morph target names, where the base attribute retains the name it already has and the target attribute name gets ‘Target’ appended to the name. The interpolator can be set as a QParameter to the used material. All morph targets in the animation should contain the attributes with same names as those in the base geometry.

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

QObject

Construct a new QMorphingAnimation with parent .

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. 方法

This enumeration specifies the morphing method.

常量

描述

Qt3DAnimation.QMorphingAnimation.Normalized

The blending should use the normalized formula; V’ = Vbase * (1.0 - sum(Wi)) + sum[Vi * Wi]

Qt3DAnimation.QMorphingAnimation.Relative

The blending should use the relative formula; V’ = Vbase + sum[Vi * Wi]

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. addMorphTarget ( target )
参数

target QMorphTarget

Add new morph target at the end of the animation.

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

QEasingCurve

另请参阅

setEasing()

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

easing QEasingCurve

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. getWeights ( positionIndex )
参数

positionIndex int

返回类型

Return morph weights at positionIndex .

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. interpolator ( )
返回类型

float

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. interpolatorChanged ( interpolator )
参数

interpolator float

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. 方法 ( )
返回类型

方法

另请参阅

setMethod()

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. methodChanged ( 方法 )
参数

方法 方法

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. morphTargetList ( )
返回类型

Return morph target list.

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. removeMorphTarget ( target )
参数

target QMorphTarget

Remove morph target from the animation.

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

easing QEasingCurve

另请参阅

easing()

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. setMethod ( 方法 )
参数

方法 方法

另请参阅

method()

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. setMorphTargets ( targets )
参数

targets

Set morph targets to animation. Old targets are cleared.

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

target QGeometryRenderer

另请参阅

target()

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

name – unicode

另请参阅

targetName()

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. setTargetPositions ( targetPositions )
参数

targetPositions

另请参阅

targetPositions()

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. setWeights ( positionIndex , weights )
参数
  • positionIndex int

  • weights

Sets morph weights at positionIndex .

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

QGeometryRenderer

另请参阅

setTarget()

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

target QGeometryRenderer

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

unicode

另请参阅

setTargetName()

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

name – unicode

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. targetPositions ( )
返回类型

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation. targetPositionsChanged ( targetPositions )
参数

targetPositions