QMorphTarget Class

( Qt3DAnimation::QMorphTarget )

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 * attribute )
QVector<Qt3DRender::QAttribute *> attributeList () const
QStringList attributeNames () const
void removeAttribute (Qt3DRender::QAttribute * attribute )
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 .

特性文檔編製

attributeNames : const QStringList

Holds a list of attribute names contained in the morph target.

訪問函數:

QStringList attributeNames () const

通知程序信號:

void attributeNamesChanged (const QStringList & attributeNames )

成員函數文檔編製

QMorphTarget:: QMorphTarget ( QObject * parent = nullptr)

構造 QMorphTarget with given parent .

void QMorphTarget:: addAttribute ( Qt3DRender::QAttribute * attribute )

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

QVector < Qt3DRender::QAttribute *> QMorphTarget:: attributeList () const

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 .

void QMorphTarget:: removeAttribute ( Qt3DRender::QAttribute * attribute )

Removes an attribute from the morph target.

void QMorphTarget:: setAttributes (const QVector < Qt3DRender::QAttribute *> & 屬性 )

屬性 to the morph target. Old attributes are cleared.