QMorphTarget Class

(Qt3DAnimation::QMorphTarget)

A class providing morph targets to blend-shape animation 更多...

头文件: #include <QMorphTarget>
qmake: QT += 3danimation
开始支持版本: Qt 5.9
Instantiated By: 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 *> &attributes)
  • 32 个公有函数继承自 QObject

信号

void attributeNamesChanged(const QStringList &attributeNames)

静态公有成员

QMorphTarget *fromGeometry(Qt3DRender::QGeometry *geometry, const QStringList &attributes)
  • 10 个静态公有成员继承自 QObject

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 1 个公有变量继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

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

Notifier signal:

void attributeNamesChanged(const QStringList &attributeNames)

成员函数

QMorphTarget::QMorphTarget(QObject *parent = nullptr)

Constructs a QMorphTarget with given parent.

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

Adds an 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 &attributes)

Returns a morph target based on the attributes in the given geometry.

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

Removes an attribute from the morph target.

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

Sets attributes to the morph target. Old attributes are cleared.