QAnimationClipLoader Class
(Qt3DAnimation::QAnimationClipLoader)Enables loading key frame animation data from a file. More...
Header: | #include <QAnimationClipLoader> |
qmake: | QT += 3danimation |
Inherits: | Qt3DAnimation::QAbstractAnimationClip |
Public Types
enum | Status { NotReady, Ready, Error } |
Properties
- 1 property inherited from Qt3DAnimation::QAbstractAnimationClip
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QAnimationClipLoader(Qt3DCore::QNode *parent = nullptr) | |
QAnimationClipLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr) | |
virtual | ~QAnimationClipLoader() |
QUrl | source() const |
Qt3DAnimation::QAnimationClipLoader::Status | status() const |
- 1 public function inherited from Qt3DAnimation::QAbstractAnimationClip
- 13 public functions inherited from Qt3DCore::QNode
- 34 public functions inherited from QObject
Public Slots
void | setSource(const QUrl &source) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | sourceChanged(const QUrl &source) |
void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
- 1 signal inherited from Qt3DAnimation::QAbstractAnimationClip
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Protected Functions
QAnimationClipLoader(Qt3DAnimation::QAnimationClipLoaderPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
Enables loading key frame animation data from a file
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.
Access functions:
QUrl | source() const |
void | setSource(const QUrl &source) |
Notifier signal:
void | sourceChanged(const QUrl &source) |
status : const Status
This property contains the status of the animation clip.
Access functions:
Qt3DAnimation::QAnimationClipLoader::Status | status() const |
Notifier signal:
void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Member Function Documentation
QAnimationClipLoader::QAnimationClipLoader(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QAnimationClipLoader.
QAnimationClipLoader::QAnimationClipLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QAnimationClipLoader.
[protected]
QAnimationClipLoader::QAnimationClipLoader(Qt3DAnimation::QAnimationClipLoaderPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QAnimationClipLoader.
[virtual]
QAnimationClipLoader::~QAnimationClipLoader()
Destroys the instance of QAnimationClipLoader. The destructor is virtual.
Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const
Returns the status of the animation clip.
Note: Getter function for property status.