- class QMorphTarget#
A class providing morph targets to blend-shape animation. More…
Synopsis#
Properties#
Methods#
def
__init__()
def
addAttribute()
def
attributeList()
def
attributeNames()
def
setAttributes()
Signals#
Static functions#
def
fromGeometry()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
A
QMorphTarget
class is a convenience class, which provides a list ofQAttributes
, which theQMorphingAnimation
uses to animate geometry. AQMorphTarget
can also be created based on existingQGeometry
.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property attributeNamesᅟ: list of strings#
Holds a list of attribute names contained in the morph target.
- Access functions:
Constructs a
QMorphTarget
with givenparent
.- addAttribute(attribute)#
- Parameters:
attribute –
QAttribute
Adds an
attribute
the morph target. An attribute with the same name must not have been added previously to the morph target.- attributeList()#
- Return type:
.list of Qt3DCore.QAttribute
Returns a list of attributes contained in the morph target.
- attributeNames()#
- Return type:
list of strings
Getter of property
attributeNamesᅟ
.- attributeNamesChanged(attributeNames)#
- Parameters:
attributeNames – list of strings
Notification signal of property
attributeNamesᅟ
.- static fromGeometry(geometry, attributes)#
- Parameters:
geometry –
QGeometry
attributes – list of strings
- Return type:
QMorphTarget
Returns a morph target based on the
attributes
in the givengeometry
.- removeAttribute(attribute)#
- Parameters:
attribute –
QAttribute
Removes an
attribute
from the morph target.- setAttributes(attributes)#
- Parameters:
attributes – .list of Qt3DCore.QAttribute
Sets
attributes
to the morph target. Old attributes are cleared.