Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::IO::AssimpAnimationDataLoader Class Reference

#include <IO/AssimpLoader/AssimpAnimationDataLoader.hpp>

+ Collaboration diagram for Ra::IO::AssimpAnimationDataLoader:

Public Member Functions

 AssimpAnimationDataLoader (const bool VERBOSE_MODE=false)
 CONSTRUCTOR.
 
 ~AssimpAnimationDataLoader () override
 DESTRUCTOR.
 
void loadData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::AnimationData > > &data) override
 LOADING.
 

Protected Member Functions

bool sceneHasAnimation (const aiScene *scene) const
 QUERY.
 
uint sceneAnimationSize (const aiScene *scene) const
 
void fetchName (const aiAnimation *anim, Core::Asset::AnimationData *data) const
 NAME.
 
void fetchTime (const aiAnimation *anim, Core::Asset::AnimationData *data) const
 TIME.
 
void loadAnimationData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::AnimationData > > &data) const
 KEY FRAME.
 
void fetchAnimation (const aiAnimation *anim, Core::Asset::AnimationData *data) const
 
void fetchHandleAnimation (aiNodeAnim *node, Core::Asset::HandleAnimation &data, const Core::Asset::AnimationTime::Time dt) const
 

Detailed Description

The AssimpAnimationDataLoader converts animation data from the Assimp format to the Asset::AnimationData format.

Definition at line 25 of file AssimpAnimationDataLoader.hpp.

Constructor & Destructor Documentation

◆ AssimpAnimationDataLoader()

Ra::IO::AssimpAnimationDataLoader::AssimpAnimationDataLoader ( const bool VERBOSE_MODE = false)
explicit

CONSTRUCTOR.

Definition at line 22 of file AssimpAnimationDataLoader.cpp.

Member Function Documentation

◆ fetchAnimation()

void Ra::IO::AssimpAnimationDataLoader::fetchAnimation ( const aiAnimation * anim,
Core::Asset::AnimationData * data ) const
protected

Fills data with the AnimationData from anim.

Definition at line 105 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ fetchHandleAnimation()

void Ra::IO::AssimpAnimationDataLoader::fetchHandleAnimation ( aiNodeAnim * node,
Core::Asset::HandleAnimation & data,
const Core::Asset::AnimationTime::Time dt ) const
protected

Fills data with the HandleAnimation from anim, according to the animation timestep dt.

Definition at line 118 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ fetchName()

void Ra::IO::AssimpAnimationDataLoader::fetchName ( const aiAnimation * anim,
Core::Asset::AnimationData * data ) const
protected

NAME.

Fills data with the name from anim.

Definition at line 64 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ fetchTime()

void Ra::IO::AssimpAnimationDataLoader::fetchTime ( const aiAnimation * anim,
Core::Asset::AnimationData * data ) const
protected

TIME.

Fills data with the AnimationTime from anim.

Definition at line 69 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ loadAnimationData()

void Ra::IO::AssimpAnimationDataLoader::loadAnimationData ( const aiScene * scene,
std::vector< std::unique_ptr< Core::Asset::AnimationData > > & data ) const
protected

KEY FRAME.

Fills data with all the AnimationData from scene.

Definition at line 89 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ loadData()

void Ra::IO::AssimpAnimationDataLoader::loadData ( const aiScene * scene,
std::vector< std::unique_ptr< Core::Asset::AnimationData > > & data )
override

LOADING.

Definition at line 29 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

◆ sceneAnimationSize()

uint Ra::IO::AssimpAnimationDataLoader::sceneAnimationSize ( const aiScene * scene) const
protected
Returns
the number of AssImp animation data in the given scene.

Definition at line 58 of file AssimpAnimationDataLoader.cpp.

◆ sceneHasAnimation()

bool Ra::IO::AssimpAnimationDataLoader::sceneHasAnimation ( const aiScene * scene) const
protected

QUERY.

Returns
true if the given scene has animation data, false otherwise.

Definition at line 54 of file AssimpAnimationDataLoader.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: