A class providing morph targets to blend-shape animation. 更多 …
def
addAttribute
(attribute)
def
attributeList
()
def
attributeNames
()
def
removeAttribute
(attribute)
def
setAttributes
(attributes)
def
attributeNamesChanged
(attributeNames)
def
fromGeometry
(geometry, attributes)
A
QMorphTargetclass is a convenience class, which provides a list ofQAttributes, which theQMorphingAnimationuses to animate geometry. AQMorphTargetcan also be created based on existingQGeometry.
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 – 字符串列表
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.