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

QAnimationClipLoader Class

Enables loading key frame animation data from a file.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAnimationClipLoader Class

  • Header: QAnimationClipLoader

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3danimation)

    target_link_libraries(mytarget PRIVATE Qt6::3danimation)

  • qmake: QT += 3danimation

  • Inherits: Qt3DAnimation::QAbstractAnimationClip

Detailed Description

 

Member Type Documentation

 

enum QAnimationClipLoader::Status

This enum identifies the status of animation clip.

Constant

Value

Description

Qt3DAnimation::QAnimationClipLoader::NotReady

0

The clip has not been loaded yet

Qt3DAnimation::QAnimationClipLoader::Ready

1

The clip was successfully loaded

Qt3DAnimation::QAnimationClipLoader::Error

2

An error occurred while loading the clip

Property Documentation

 

source : QUrl

Holds the source URL from which to load the animation clip. Currently glTF2 and the native Qt 3D json animation file formats are supported.

In the case where a file contains multiple animations, it is possible to select which animation should be loaded by way of query parameters on the source url. The accepted query parameters are animationIndex and animationName. If both are specified, animationName is ignored.

If a file contains only a single animation, there is no need to specify the animationIndex or animationName. We simply use the one available animation.

Access functions:

  • source() const

  • void setSource(const &source)

Notifier signal:

  • void sourceChanged(const &source)

[read-only] status : const Status

This property contains the status of the animation clip.

Access functions:

Notifier signal:

  • void statusChanged( status)

Member Function Documentation

 

Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const

Returns the status of the animation clip.

Getter function for property status.

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