A class providing morph targets to blend-shape animation. More...
Header: | #include <QMorphTarget> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Instantiated By: | MorphTarget |
Inherits: | QObject |
QMorphTarget(QObject *parent = nullptr) | |
void | addAttribute(Qt3DCore::QAttribute *attribute) |
QList<Qt3DCore::QAttribute *> | attributeList() const |
QStringList | attributeNames() const |
void | removeAttribute(Qt3DCore::QAttribute *attribute) |
void | setAttributes(const QList<Qt3DCore::QAttribute *> &attributes) |
void | attributeNamesChanged(const QStringList &attributeNames) |
Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
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 Qt3DCore::QGeometry.
[read-only]
attributeNames : const QStringListHolds a list of attribute names contained in the morph target.
Access functions:
QStringList | attributeNames() const |
Notifier signal:
void | attributeNamesChanged(const QStringList &attributeNames) |
Constructs a QMorphTarget with given parent.
Adds an attribute 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 invokable]
Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::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.
Removes an attribute from the morph target.
Sets attributes to the morph target. Old attributes are cleared.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: