QMorphTarget露
- PyQt5.Qt3DAnimation.QMorphTarget
Inherits from QObject.
Description露
A class providing morph targets to blend-shape animation.
A QMorphTarget class is a convenience class, which provides a list of QAttribute, which the QMorphingAnimation uses to animate geometry. A QMorphTarget can also be created based on existing QGeometry.
Methods露
- __init__(parent: QObject = None)
Constructs a QMorphTarget with given parent.
- addAttribute(QAttribute)
Adds an attribute the morph target. An attribute with the same name must not have been added previously to the morph target.
- attributeList() → List[QAttribute]
Returns a list of attributes contained in the morph target.
- attributeNames() → List[str]
TODO
-
@staticmethod
fromGeometry(QGeometry, Iterable[str]) → QMorphTarget Returns a morph target based on the attributes in the given geometry.
- removeAttribute(QAttribute)
Removes an attribute from the morph target.
- setAttributes(Iterable[QAttribute])
Sets attributes to the morph target. Old attributes are cleared.
Signals露
- attributeNamesChanged(Iterable[str])
TODO