内容表

上一话题

Qt3DAnimation.QLerpClipBlend

下一话题

Qt3DAnimation.QMorphingAnimation

Qt3DAnimation.QMorphTarget

A class providing morph targets to blend-shape animation. 更多

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget

概要

函数

信号

静态函数

详细描述

A QMorphTarget class is a convenience class, which provides a list of QAttributes , which the QMorphingAnimation uses to animate geometry. A QMorphTarget can also be created based on existing QGeometry .

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

QObject

构造 QMorphTarget with given parent .

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. addAttribute ( attribute )
参数

attribute QAttribute

添加 attribute the morph target. An attribute with the same name must not have been added previously to the morph target.

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. attributeList ( )
返回类型

Returns a list of attributes contained in the morph target.

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. attributeNames ( )
返回类型

字符串列表

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. attributeNamesChanged ( attributeNames )
参数

attributeNames – 字符串列表

static PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. fromGeometry ( geometry , attributes )
参数
  • geometry QGeometry

  • attributes – 字符串列表

返回类型

QMorphTarget

Returns a morph target based on the attributes 以给定 geometry .

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. removeAttribute ( attribute )
参数

attribute QAttribute

Removes an attribute from the morph target.

PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget. setAttributes ( attributes )
参数

attributes

attributes to the morph target. Old attributes are cleared.