IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QMorphTarget Class

A class providing morph targets to blend-shape animation.

This class was introduced in Qt 5.9.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QMorphTarget Class

  • Header: QMorphTarget

  • Since: Qt 5.9

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3danimation)

    target_link_libraries(mytarget PRIVATE Qt6::3danimation)

  • qmake: QT += 3danimation

  • Inherited By:

  • Instantiated By: qml-qt3d-animation-morphtarget.xml

  • Inherits: QObject

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 Qt3DCore::QGeometry.

Property Documentation

 

[read-only] attributeNames : const QStringList

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

Access functions:

  • attributeNames() const

Notifier signal:

  • void attributeNamesChanged(const &attributeNames)

Member Function Documentation

 

[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)

Constructs a QMorphTarget with given parent.

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

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

QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const

Returns a list of attributes contained in the morph target.

[static] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)

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

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

Removes an attribute from the morph target.

void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+