doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
idMD5Anim Class Reference

#include <Anim.h>

Public Member Functions

 idMD5Anim ()
 
 ~idMD5Anim ()
 
void Free (void)
 
bool Reload (void)
 
size_t Allocated (void) const
 
size_t Size (void) const
 
bool LoadAnim (const char *filename)
 
void IncreaseRefs (void) const
 
void DecreaseRefs (void) const
 
int NumRefs (void) const
 
void CheckModelHierarchy (const idRenderModel *model) const
 
void GetInterpolatedFrame (frameBlend_t &frame, idJointQuat *joints, const int *index, int numIndexes) const
 
void GetSingleFrame (int framenum, idJointQuat *joints, const int *index, int numIndexes) const
 
int Length (void) const
 
int NumFrames (void) const
 
int NumJoints (void) const
 
const idVec3TotalMovementDelta (void) const
 
const char * Name (void) const
 
void GetFrameBlend (int framenum, frameBlend_t &frame) const
 
void ConvertTimeToFrame (int time, int cyclecount, frameBlend_t &frame) const
 
void GetOrigin (idVec3 &offset, int currentTime, int cyclecount) const
 
void GetOriginRotation (idQuat &rotation, int time, int cyclecount) const
 
void GetBounds (idBounds &bounds, int currentTime, int cyclecount) const
 

Private Attributes

int numFrames
 
int frameRate
 
int animLength
 
int numJoints
 
int numAnimatedComponents
 
idList< idBoundsbounds
 
idList< jointAnimInfo_tjointInfo
 
idList< idJointQuatbaseFrame
 
idList< floatcomponentFrames
 
idStr name
 
idVec3 totaldelta
 
int ref_count
 

Detailed Description

Definition at line 226 of file Anim.h.

Constructor & Destructor Documentation

idMD5Anim::idMD5Anim ( )

Definition at line 47 of file Anim.cpp.

idMD5Anim::~idMD5Anim ( )

Definition at line 61 of file Anim.cpp.

Member Function Documentation

size_t idMD5Anim::Allocated ( void  ) const

Definition at line 148 of file Anim.cpp.

void idMD5Anim::CheckModelHierarchy ( const idRenderModel model) const

Definition at line 888 of file Anim.cpp.

void idMD5Anim::ConvertTimeToFrame ( int  time,
int  cyclecount,
frameBlend_t frame 
) const

Definition at line 384 of file Anim.cpp.

void idMD5Anim::DecreaseRefs ( void  ) const

Definition at line 344 of file Anim.cpp.

void idMD5Anim::Free ( void  )

Definition at line 70 of file Anim.cpp.

void idMD5Anim::GetBounds ( idBounds bounds,
int  currentTime,
int  cyclecount 
) const

Definition at line 589 of file Anim.cpp.

void idMD5Anim::GetFrameBlend ( int  framenum,
frameBlend_t frame 
) const

Definition at line 362 of file Anim.cpp.

void idMD5Anim::GetInterpolatedFrame ( frameBlend_t frame,
idJointQuat joints,
const int index,
int  numIndexes 
) const

Definition at line 630 of file Anim.cpp.

void idMD5Anim::GetOrigin ( idVec3 offset,
int  currentTime,
int  cyclecount 
) const

Definition at line 434 of file Anim.cpp.

void idMD5Anim::GetOriginRotation ( idQuat rotation,
int  time,
int  cyclecount 
) const

Definition at line 474 of file Anim.cpp.

void idMD5Anim::GetSingleFrame ( int  framenum,
idJointQuat joints,
const int index,
int  numIndexes 
) const

Definition at line 820 of file Anim.cpp.

void idMD5Anim::IncreaseRefs ( void  ) const

Definition at line 335 of file Anim.cpp.

int idMD5Anim::Length ( void  ) const

Definition at line 107 of file Anim.cpp.

bool idMD5Anim::LoadAnim ( const char *  filename)

Definition at line 158 of file Anim.cpp.

const char * idMD5Anim::Name ( void  ) const

Definition at line 125 of file Anim.cpp.

int idMD5Anim::NumFrames ( void  ) const

Definition at line 89 of file Anim.cpp.

int idMD5Anim::NumJoints ( void  ) const

Definition at line 98 of file Anim.cpp.

int idMD5Anim::NumRefs ( void  ) const

Definition at line 353 of file Anim.cpp.

bool idMD5Anim::Reload ( void  )

Definition at line 134 of file Anim.cpp.

size_t idMD5Anim::Size ( void  ) const
inline

Definition at line 248 of file Anim.h.

const idVec3 & idMD5Anim::TotalMovementDelta ( void  ) const

Definition at line 116 of file Anim.cpp.

Member Data Documentation

int idMD5Anim::animLength
private

Definition at line 230 of file Anim.h.

idList<idJointQuat> idMD5Anim::baseFrame
private

Definition at line 235 of file Anim.h.

idList<idBounds> idMD5Anim::bounds
private

Definition at line 233 of file Anim.h.

idList<float> idMD5Anim::componentFrames
private

Definition at line 236 of file Anim.h.

int idMD5Anim::frameRate
private

Definition at line 229 of file Anim.h.

idList<jointAnimInfo_t> idMD5Anim::jointInfo
private

Definition at line 234 of file Anim.h.

idStr idMD5Anim::name
private

Definition at line 237 of file Anim.h.

int idMD5Anim::numAnimatedComponents
private

Definition at line 232 of file Anim.h.

int idMD5Anim::numFrames
private

Definition at line 228 of file Anim.h.

int idMD5Anim::numJoints
private

Definition at line 231 of file Anim.h.

int idMD5Anim::ref_count
mutableprivate

Definition at line 239 of file Anim.h.

idVec3 idMD5Anim::totaldelta
private

Definition at line 238 of file Anim.h.


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