QMorphTarget Class
(Qt3DAnimation::QMorphTarget)A class providing morph targets to blend-shape animation. More...
Header: | #include <QMorphTarget> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Instantiated By: | MorphTarget |
Inherits: | QObject |
This class was introduced in Qt 5.9.
Properties
- attributeNames : const QStringList
- 1 property inherited from QObject
Public Functions
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) |
- 30 public functions inherited from QObject
Signals
void | attributeNamesChanged(const QStringList &attributeNames) |
- 2 signals inherited from QObject
Static Public Members
Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DRender::QGeometry *geometry, const QStringList &attributes) |
- 9 static public members inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
Detailed Description
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.
Property Documentation
attributeNames : const QStringList
Holds a list of attribute names contained in the morph target.
Access functions:
QStringList | attributeNames() const |
Notifier signal:
void | attributeNamesChanged(const QStringList &attributeNames) |
Member Function Documentation
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]
Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DRender::QGeometry *geometry, const QStringList &attributes)
Returns a morph target based on the attributes in the given geometry.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
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.