igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
graphic::IAnimationSet Interface Referenceabstract

A file's loaded animation clips, independent of any IModel bound to it - deleting every bound IModel does not delete the set, only deleteAnimationSet() does. Many IModel instances can share one set (same clips), each tracking its own current clip/frame via IModel::setAnimation()/updateAnimation(). More...

#include <IAnimationSet.hpp>

Public Member Functions

virtual ~IAnimationSet ()=default
 
virtual bool isReady () const =0
 notice if the animation set is ready
 
virtual int getSize () const =0
 Get the number of clips in this set.
 
virtual std::string getName (int index) const =0
 The clip name, as it appears in the file.
 
virtual int getFrameCount (int index) const =0
 How many frames this clip has.
 

Detailed Description

A file's loaded animation clips, independent of any IModel bound to it - deleting every bound IModel does not delete the set, only deleteAnimationSet() does. Many IModel instances can share one set (same clips), each tracking its own current clip/frame via IModel::setAnimation()/updateAnimation().

Constructor & Destructor Documentation

◆ ~IAnimationSet()

virtual graphic::IAnimationSet::~IAnimationSet ( )
virtualdefault

Member Function Documentation

◆ getFrameCount()

virtual int graphic::IAnimationSet::getFrameCount ( int  index) const
pure virtual

How many frames this clip has.

Parameters
index
Returns
int

◆ getName()

virtual std::string graphic::IAnimationSet::getName ( int  index) const
pure virtual

The clip name, as it appears in the file.

A Mixamo export often bakes every move into a single clip : the clip count therefore does not tell you the number of moves, and sub-sequences are marked nowhere.

Parameters
index
Returns
std::string

◆ getSize()

virtual int graphic::IAnimationSet::getSize ( ) const
pure virtual

Get the number of clips in this set.

Returns
int

◆ isReady()

virtual bool graphic::IAnimationSet::isReady ( ) const
pure virtual

notice if the animation set is ready

Returns
bool

The documentation for this interface was generated from the following file: