ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Animate a skeletal model's bones according to an animation. More...

#include <animhandler.h>

Collaboration diagram for Stark::AnimHandler:

List of all members.

Public Member Functions

 AnimHandler ()
 ~AnimHandler ()
void animate (uint32 time)
 Increment the animation timestamp, and apply bone animations if required.
void setModel (Model *model)
 Set the skeletal model to animate.
void setAnim (SkeletonAnim *anim)
 Set the skeletal animation to use.
void resetBlending ()
 Stop blending and forget about the previous animation.

Private Member Functions

void enactCandidate ()
void startBlending ()
void updateBlending (int32 deltaTime)
void stopBlending ()
void setNode (uint32 time, BoneNode *bone, const BoneNode *parent)

Private Attributes

SkeletonAnim_anim
int32 _animTime
int32 _framesBeforeCandidateReady
SkeletonAnim_candidateAnim
int32 _candidateAnimTime
SkeletonAnim_blendAnim
int32 _blendAnimTime
int32 _blendTimeRemaining
Model_model

Static Private Attributes

static const uint32 _blendDuration = 300

Detailed Description

Animate a skeletal model's bones according to an animation.

Definition at line 37 of file animhandler.h.


Constructor & Destructor Documentation

Stark::AnimHandler::AnimHandler (  ) 

Definition at line 30 of file animhandler.cpp.

Stark::AnimHandler::~AnimHandler (  ) 

Definition at line 43 of file animhandler.cpp.


Member Function Documentation

void Stark::AnimHandler::animate ( uint32  time  ) 

Increment the animation timestamp, and apply bone animations if required.

Definition at line 104 of file animhandler.cpp.

void Stark::AnimHandler::enactCandidate (  )  [private]

Definition at line 153 of file animhandler.cpp.

void Stark::AnimHandler::resetBlending (  ) 

Stop blending and forget about the previous animation.

Definition at line 187 of file animhandler.cpp.

void Stark::AnimHandler::setAnim ( SkeletonAnim anim  ) 

Set the skeletal animation to use.

Definition at line 46 of file animhandler.cpp.

void Stark::AnimHandler::setModel ( Model model  ) 

Set the skeletal model to animate.

Definition at line 70 of file animhandler.cpp.

void Stark::AnimHandler::setNode ( uint32  time,
BoneNode bone,
const BoneNode parent 
) [private]

Definition at line 74 of file animhandler.cpp.

void Stark::AnimHandler::startBlending (  )  [private]

Definition at line 161 of file animhandler.cpp.

void Stark::AnimHandler::stopBlending (  )  [private]

Definition at line 181 of file animhandler.cpp.

void Stark::AnimHandler::updateBlending ( int32  deltaTime  )  [private]

Definition at line 167 of file animhandler.cpp.


Member Data Documentation

Definition at line 66 of file animhandler.h.

Definition at line 67 of file animhandler.h.

Definition at line 73 of file animhandler.h.

Definition at line 74 of file animhandler.h.

const uint32 Stark::AnimHandler::_blendDuration = 300 [static, private]

Definition at line 64 of file animhandler.h.

Definition at line 75 of file animhandler.h.

Definition at line 70 of file animhandler.h.

Definition at line 71 of file animhandler.h.

Definition at line 77 of file animhandler.h.


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


Generated on Sat Mar 16 2019 05:06:52 for ResidualVM by doxygen 1.7.1
curved edge   curved edge