31 #ifndef INCLUDE_ARTICULATION_ANIMATION_H_ 32 #define INCLUDE_ARTICULATION_ANIMATION_H_ 34 #include <assimp/scene.h> 57 Animation(
Scene *
const scene,
const aiAnimation *
const animation,
const size_t id);
64 typedef std::vector<Channel *> Channels;
70 void toDot(FILE *dot);
const double & getDuration() const
Duration of this animation in seconds.
Definition: Animation.h:127
const size_t & getId() const
Returns the unique ID of this animation.
Definition: Animation.h:76
Scene graph corresponding to Assimp's aiScene.
Definition: Scene.h:59
const size_t & getEndFrame() const
Frame number where this animation ends.
Definition: Animation.h:103
const size_t & getStartFrame() const
Frame number where this animation starts.
Definition: Animation.h:95
Definition: AbstractCamera.h:41
const Channels & getChannels() const
Vector of Channel pointers that this animation influences.
Definition: Animation.h:119
Channels channels
Channels manipulated by this animation.
Definition: Animation.h:138
void toDot(FILE *dot)
Write Graphviz Dot node representing this animation to file for debugging.
virtual ~Animation()
Destructor.
Animation(Scene *const scene, const aiAnimation *const animation, const size_t id)
Constructor.
const size_t & getNumFrames() const
Duration of this animation in frames.
Definition: Animation.h:111
size_t startFrame
Start frame of the animation.
Definition: Animation.h:135
const std::string name
Name of this animation, see getName().
Definition: Animation.h:133
const std::string & getName() const
Returns the name of this animation for logging.
Definition: Animation.h:87
const size_t id
Unique ID, see getId().
Definition: Animation.h:132
size_t endFrame
End frame of the animation.
Definition: Animation.h:136
const double duration
Duration of the animation in seconds.
Definition: Animation.h:134
size_t numFrames
Number of frames of the animation.
Definition: Animation.h:137
Represents the animation of a scene object.
Definition: Animation.h:49