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

Grim::KeyframeAnim Class Reference

#include <keyframe.h>

Inheritance diagram for Grim::KeyframeAnim:
Collaboration diagram for Grim::KeyframeAnim:

List of all members.

Classes

struct  KeyframeEntry
struct  KeyframeNode
struct  Marker

Public Member Functions

 KeyframeAnim (const Common::String &filename, Common::SeekableReadStream *data)
 ~KeyframeAnim ()
void loadBinary (Common::SeekableReadStream *data)
void loadText (TextSplitter &ts)
bool isNodeAnimated (ModelNode *nodes, int num, float time, bool tagged) const
void animate (ModelNode *nodes, int num, float time, float fade, bool tagged) const
int getMarker (float startTime, float stopTime) const
float getLength () const
const Common::StringgetFilename () const

Private Attributes

Common::String _fname
unsigned int _flags
unsigned int _type
 A bitfield ID which specifies which joints of the skeleton hierarchy this KeyFrameAnim can animate on.
int _numFrames
int _numJoints
float _fps
int _numMarkers
Marker_markers
KeyframeNode ** _nodes

Detailed Description

Definition at line 39 of file keyframe.h.


Constructor & Destructor Documentation

Grim::KeyframeAnim::KeyframeAnim ( const Common::String filename,
Common::SeekableReadStream data 
)

Definition at line 33 of file keyframe.cpp.

Grim::KeyframeAnim::~KeyframeAnim (  ) 

Definition at line 153 of file keyframe.cpp.


Member Function Documentation

void Grim::KeyframeAnim::animate ( ModelNode nodes,
int  num,
float  time,
float  fade,
bool  tagged 
) const

Definition at line 179 of file keyframe.cpp.

const Common::String& Grim::KeyframeAnim::getFilename (  )  const [inline]

Definition at line 51 of file keyframe.h.

float Grim::KeyframeAnim::getLength (  )  const [inline]

Definition at line 50 of file keyframe.h.

int Grim::KeyframeAnim::getMarker ( float  startTime,
float  stopTime 
) const

Definition at line 195 of file keyframe.cpp.

bool Grim::KeyframeAnim::isNodeAnimated ( ModelNode nodes,
int  num,
float  time,
bool  tagged 
) const

Definition at line 161 of file keyframe.cpp.

void Grim::KeyframeAnim::loadBinary ( Common::SeekableReadStream data  ) 

Definition at line 46 of file keyframe.cpp.

void Grim::KeyframeAnim::loadText ( TextSplitter ts  ) 

Definition at line 120 of file keyframe.cpp.


Member Data Documentation

unsigned int Grim::KeyframeAnim::_flags [private]

Definition at line 55 of file keyframe.h.

Definition at line 54 of file keyframe.h.

float Grim::KeyframeAnim::_fps [private]

Definition at line 64 of file keyframe.h.

Definition at line 71 of file keyframe.h.

Definition at line 94 of file keyframe.h.

Definition at line 63 of file keyframe.h.

Definition at line 63 of file keyframe.h.

Definition at line 65 of file keyframe.h.

unsigned int Grim::KeyframeAnim::_type [private]

A bitfield ID which specifies which joints of the skeleton hierarchy this KeyFrameAnim can animate on.

This is ANDed against the _type of the ModelNode to test whether this KeyFrameAnim can animate that ModelNode, or if it is to be ignored.

Definition at line 62 of file keyframe.h.


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


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