A class providing morph targets to blend-shape animation 更多...
| 头: | #include <QMorphTarget> |
| qmake: | QT += 3danimation |
| Since: | Qt 5.9 |
| 实例化: | MorphTarget |
| 继承: | QObject |
| QMorphTarget (QObject * parent = nullptr) | |
| void | addAttribute (Qt3DRender::QAttribute * 属性 ) |
| QVector<Qt3DRender::QAttribute *> | attributeList () const |
| QStringList | attributeNames () const |
| void | removeAttribute (Qt3DRender::QAttribute * 属性 ) |
| void | setAttributes (const QVector<Qt3DRender::QAttribute *> & 属性 ) |
| void | attributeNamesChanged (const QStringList & attributeNames ) |
| QMorphTarget * | fromGeometry (Qt3DRender::QGeometry * geometry , const QStringList & 属性 ) |
A class providing morph targets to blend-shape animation
A Qt3DAnimation::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 Qt3DRender::QGeometry .
Holds a list of attribute names contained in the morph target.
访问函数:
| QStringList | attributeNames () const |
通知程序信号:
| void | attributeNamesChanged (const QStringList & attributeNames ) |
构造 QMorphTarget with given parent .
添加 属性 the morph target. An attribute with the same name must not have been added previously to the morph target.
Returns a list of attributes contained in the morph target.
[static]
QMorphTarget
*QMorphTarget::
fromGeometry
(
Qt3DRender::QGeometry
*
geometry
, const
QStringList
&
属性
)
Returns a morph target based on the 属性 以给定 geometry .
Removes an 属性 from the morph target.
集 属性 to the morph target. Old attributes are cleared.