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

#include <Anim.h>

Public Member Functions

 idAnimator ()
 
 ~idAnimator ()
 
size_t Allocated (void) const
 
size_t Size (void) const
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void SetEntity (idEntity *ent)
 
idEntityGetEntity (void) const
 
void RemoveOriginOffset (bool remove)
 
bool RemoveOrigin (void) const
 
void GetJointList (const char *jointnames, idList< jointHandle_t > &jointList) const
 
int NumAnims (void) const
 
const idAnimGetAnim (int index) const
 
int GetAnim (const char *name) const
 
bool HasAnim (const char *name) const
 
void ServiceAnims (int fromtime, int totime)
 
bool IsAnimating (int currentTime) const
 
void GetJoints (int *numJoints, idJointMat **jointsPtr)
 
int NumJoints (void) const
 
jointHandle_t GetFirstChild (jointHandle_t jointnum) const
 
jointHandle_t GetFirstChild (const char *name) const
 
idRenderModelSetModel (const char *modelname)
 
idRenderModelModelHandle (void) const
 
const idDeclModelDefModelDef (void) const
 
void ForceUpdate (void)
 
void ClearForceUpdate (void)
 
bool CreateFrame (int animtime, bool force)
 
bool FrameHasChanged (int animtime) const
 
void GetDelta (int fromtime, int totime, idVec3 &delta) const
 
bool GetDeltaRotation (int fromtime, int totime, idMat3 &delta) const
 
void GetOrigin (int currentTime, idVec3 &pos) const
 
bool GetBounds (int currentTime, idBounds &bounds)
 
idAnimBlendCurrentAnim (int channelNum)
 
void Clear (int channelNum, int currentTime, int cleartime)
 
void SetFrame (int channelNum, int animnum, int frame, int currenttime, int blendtime)
 
void CycleAnim (int channelNum, int animnum, int currenttime, int blendtime)
 
void PlayAnim (int channelNum, int animnum, int currenttime, int blendTime)
 
void SyncAnimChannels (int channelNum, int fromChannelNum, int currenttime, int blendTime)
 
void SetJointPos (jointHandle_t jointnum, jointModTransform_t transform_type, const idVec3 &pos)
 
void SetJointAxis (jointHandle_t jointnum, jointModTransform_t transform_type, const idMat3 &mat)
 
void ClearJoint (jointHandle_t jointnum)
 
void ClearAllJoints (void)
 
void InitAFPose (void)
 
void SetAFPoseJointMod (const jointHandle_t jointNum, const AFJointModType_t mod, const idMat3 &axis, const idVec3 &origin)
 
void FinishAFPose (int animnum, const idBounds &bounds, const int time)
 
void SetAFPoseBlendWeight (float blendWeight)
 
bool BlendAFPose (idJointQuat *blendFrame) const
 
void ClearAFPose (void)
 
void ClearAllAnims (int currentTime, int cleartime)
 
jointHandle_t GetJointHandle (const char *name) const
 
const char * GetJointName (jointHandle_t handle) const
 
int GetChannelForJoint (jointHandle_t joint) const
 
bool GetJointTransform (jointHandle_t jointHandle, int currenttime, idVec3 &offset, idMat3 &axis)
 
bool GetJointLocalTransform (jointHandle_t jointHandle, int currentTime, idVec3 &offset, idMat3 &axis)
 
const animFlags_t GetAnimFlags (int animnum) const
 
int NumFrames (int animnum) const
 
int NumSyncedAnims (int animnum) const
 
const char * AnimName (int animnum) const
 
const char * AnimFullName (int animnum) const
 
int AnimLength (int animnum) const
 
const idVec3TotalMovementDelta (int animnum) const
 

Private Member Functions

void FreeData (void)
 
void PushAnims (int channel, int currentTime, int blendTime)
 

Private Attributes

const idDeclModelDefmodelDef
 
idEntityentity
 
idAnimBlend channels [ANIM_NumAnimChannels][ANIM_MaxAnimsPerChannel]
 
idList< jointMod_t * > jointMods
 
int numJoints
 
idJointMatjoints
 
int lastTransformTime
 
bool stoppedAnimatingUpdate
 
bool removeOriginOffset
 
bool forceUpdate
 
idBounds frameBounds
 
float AFPoseBlendWeight
 
idList< intAFPoseJoints
 
idList< idAFPoseJointModAFPoseJointMods
 
idList< idJointQuatAFPoseJointFrame
 
idBounds AFPoseBounds
 
int AFPoseTime
 

Detailed Description

Definition at line 486 of file Anim.h.

Constructor & Destructor Documentation

idAnimator::idAnimator ( )

Definition at line 3087 of file Anim_Blend.cpp.

idAnimator::~idAnimator ( )

Definition at line 3119 of file Anim_Blend.cpp.

Member Function Documentation

size_t idAnimator::Allocated ( void  ) const

Definition at line 3128 of file Anim_Blend.cpp.

const char * idAnimator::AnimFullName ( int  animnum) const

Definition at line 4718 of file Anim_Blend.cpp.

int idAnimator::AnimLength ( int  animnum) const

Definition at line 4732 of file Anim_Blend.cpp.

const char * idAnimator::AnimName ( int  animnum) const

Definition at line 4704 of file Anim_Blend.cpp.

bool idAnimator::BlendAFPose ( idJointQuat blendFrame) const

Definition at line 4127 of file Anim_Blend.cpp.

void idAnimator::Clear ( int  channelNum,
int  currentTime,
int  cleartime 
)

Definition at line 3539 of file Anim_Blend.cpp.

void idAnimator::ClearAFPose ( void  )

Definition at line 4143 of file Anim_Blend.cpp.

void idAnimator::ClearAllAnims ( int  currentTime,
int  cleartime 
)

Definition at line 3768 of file Anim_Blend.cpp.

void idAnimator::ClearAllJoints ( void  )

Definition at line 3756 of file Anim_Blend.cpp.

void idAnimator::ClearForceUpdate ( void  )

Definition at line 4510 of file Anim_Blend.cpp.

void idAnimator::ClearJoint ( jointHandle_t  jointnum)

Definition at line 3732 of file Anim_Blend.cpp.

bool idAnimator::CreateFrame ( int  animtime,
bool  force 
)

Definition at line 4255 of file Anim_Blend.cpp.

idAnimBlend * idAnimator::CurrentAnim ( int  channelNum)

Definition at line 3526 of file Anim_Blend.cpp.

void idAnimator::CycleAnim ( int  channelNum,
int  animnum,
int  currenttime,
int  blendtime 
)

Definition at line 3580 of file Anim_Blend.cpp.

void idAnimator::FinishAFPose ( int  animnum,
const idBounds bounds,
const int  time 
)

Definition at line 3979 of file Anim_Blend.cpp.

void idAnimator::ForceUpdate ( void  )

Definition at line 4500 of file Anim_Blend.cpp.

bool idAnimator::FrameHasChanged ( int  animtime) const

Definition at line 4221 of file Anim_Blend.cpp.

void idAnimator::FreeData ( void  )
private

Definition at line 3293 of file Anim_Blend.cpp.

const idAnim * idAnimator::GetAnim ( int  index) const

Definition at line 3456 of file Anim_Blend.cpp.

int idAnimator::GetAnim ( const char *  name) const

Definition at line 3469 of file Anim_Blend.cpp.

const animFlags_t idAnimator::GetAnimFlags ( int  animnum) const

Definition at line 4659 of file Anim_Blend.cpp.

bool idAnimator::GetBounds ( int  currentTime,
idBounds bounds 
)

Definition at line 3888 of file Anim_Blend.cpp.

int idAnimator::GetChannelForJoint ( jointHandle_t  joint) const

Definition at line 4596 of file Anim_Blend.cpp.

void idAnimator::GetDelta ( int  fromtime,
int  totime,
idVec3 delta 
) const

Definition at line 3784 of file Anim_Blend.cpp.

bool idAnimator::GetDeltaRotation ( int  fromtime,
int  totime,
idMat3 delta 
) const

Definition at line 3815 of file Anim_Blend.cpp.

idEntity * idAnimator::GetEntity ( void  ) const

Definition at line 3405 of file Anim_Blend.cpp.

jointHandle_t idAnimator::GetFirstChild ( jointHandle_t  jointnum) const

Definition at line 4622 of file Anim_Blend.cpp.

jointHandle_t idAnimator::GetFirstChild ( const char *  name) const

Definition at line 4613 of file Anim_Blend.cpp.

jointHandle_t idAnimator::GetJointHandle ( const char *  name) const

Definition at line 4570 of file Anim_Blend.cpp.

void idAnimator::GetJointList ( const char *  jointnames,
idList< jointHandle_t > &  jointList 
) const

Definition at line 3432 of file Anim_Blend.cpp.

bool idAnimator::GetJointLocalTransform ( jointHandle_t  jointHandle,
int  currentTime,
idVec3 offset,
idMat3 axis 
)

Definition at line 4538 of file Anim_Blend.cpp.

const char * idAnimator::GetJointName ( jointHandle_t  handle) const

Definition at line 4583 of file Anim_Blend.cpp.

void idAnimator::GetJoints ( int numJoints,
idJointMat **  jointsPtr 
)

Definition at line 4649 of file Anim_Blend.cpp.

bool idAnimator::GetJointTransform ( jointHandle_t  jointHandle,
int  currenttime,
idVec3 offset,
idMat3 axis 
)

Definition at line 4520 of file Anim_Blend.cpp.

void idAnimator::GetOrigin ( int  currentTime,
idVec3 pos 
) const

Definition at line 3855 of file Anim_Blend.cpp.

bool idAnimator::HasAnim ( const char *  name) const

Definition at line 3482 of file Anim_Blend.cpp.

void idAnimator::InitAFPose ( void  )

Definition at line 3946 of file Anim_Blend.cpp.

bool idAnimator::IsAnimating ( int  currentTime) const

Definition at line 4191 of file Anim_Blend.cpp.

const idDeclModelDef * idAnimator::ModelDef ( void  ) const

Definition at line 3517 of file Anim_Blend.cpp.

idRenderModel * idAnimator::ModelHandle ( void  ) const

Definition at line 3504 of file Anim_Blend.cpp.

int idAnimator::NumAnims ( void  ) const

Definition at line 3443 of file Anim_Blend.cpp.

int idAnimator::NumFrames ( int  animnum) const

Definition at line 4676 of file Anim_Blend.cpp.

int idAnimator::NumJoints ( void  ) const

Definition at line 3495 of file Anim_Blend.cpp.

int idAnimator::NumSyncedAnims ( int  animnum) const

Definition at line 4690 of file Anim_Blend.cpp.

void idAnimator::PlayAnim ( int  channelNum,
int  animnum,
int  currenttime,
int  blendTime 
)

Definition at line 3601 of file Anim_Blend.cpp.

void idAnimator::PushAnims ( int  channel,
int  currentTime,
int  blendTime 
)
private

Definition at line 3322 of file Anim_Blend.cpp.

bool idAnimator::RemoveOrigin ( void  ) const

Definition at line 3423 of file Anim_Blend.cpp.

void idAnimator::RemoveOriginOffset ( bool  remove)

Definition at line 3414 of file Anim_Blend.cpp.

void idAnimator::Restore ( idRestoreGame savefile)

Definition at line 3214 of file Anim_Blend.cpp.

void idAnimator::Save ( idSaveGame savefile) const

Definition at line 3143 of file Anim_Blend.cpp.

void idAnimator::ServiceAnims ( int  fromtime,
int  totime 
)

Definition at line 4158 of file Anim_Blend.cpp.

void idAnimator::SetAFPoseBlendWeight ( float  blendWeight)

Definition at line 4118 of file Anim_Blend.cpp.

void idAnimator::SetAFPoseJointMod ( const jointHandle_t  jointNum,
const AFJointModType_t  mod,
const idMat3 axis,
const idVec3 origin 
)

Definition at line 3963 of file Anim_Blend.cpp.

void idAnimator::SetEntity ( idEntity ent)

Definition at line 3396 of file Anim_Blend.cpp.

void idAnimator::SetFrame ( int  channelNum,
int  animnum,
int  frame,
int  currenttime,
int  blendtime 
)

Definition at line 3559 of file Anim_Blend.cpp.

void idAnimator::SetJointAxis ( jointHandle_t  jointnum,
jointModTransform_t  transform_type,
const idMat3 mat 
)

Definition at line 3692 of file Anim_Blend.cpp.

void idAnimator::SetJointPos ( jointHandle_t  jointnum,
jointModTransform_t  transform_type,
const idVec3 pos 
)

Definition at line 3652 of file Anim_Blend.cpp.

idRenderModel * idAnimator::SetModel ( const char *  modelname)

Definition at line 3345 of file Anim_Blend.cpp.

size_t idAnimator::Size ( void  ) const

Definition at line 3387 of file Anim_Blend.cpp.

void idAnimator::SyncAnimChannels ( int  channelNum,
int  fromChannelNum,
int  currenttime,
int  blendTime 
)

Definition at line 3622 of file Anim_Blend.cpp.

const idVec3 & idAnimator::TotalMovementDelta ( int  animnum) const

Definition at line 4746 of file Anim_Blend.cpp.

Member Data Documentation

float idAnimator::AFPoseBlendWeight
private

Definition at line 588 of file Anim.h.

idBounds idAnimator::AFPoseBounds
private

Definition at line 592 of file Anim.h.

idList<idJointQuat> idAnimator::AFPoseJointFrame
private

Definition at line 591 of file Anim.h.

idList<idAFPoseJointMod> idAnimator::AFPoseJointMods
private

Definition at line 590 of file Anim.h.

idList<int> idAnimator::AFPoseJoints
private

Definition at line 589 of file Anim.h.

int idAnimator::AFPoseTime
private

Definition at line 593 of file Anim.h.

Definition at line 576 of file Anim.h.

idEntity* idAnimator::entity
private

Definition at line 574 of file Anim.h.

bool idAnimator::forceUpdate
private

Definition at line 584 of file Anim.h.

idBounds idAnimator::frameBounds
private

Definition at line 586 of file Anim.h.

idList<jointMod_t *> idAnimator::jointMods
private

Definition at line 577 of file Anim.h.

idJointMat* idAnimator::joints
private

Definition at line 579 of file Anim.h.

int idAnimator::lastTransformTime
mutableprivate

Definition at line 581 of file Anim.h.

const idDeclModelDef* idAnimator::modelDef
private

Definition at line 573 of file Anim.h.

int idAnimator::numJoints
private

Definition at line 578 of file Anim.h.

bool idAnimator::removeOriginOffset
private

Definition at line 583 of file Anim.h.

bool idAnimator::stoppedAnimatingUpdate
mutableprivate

Definition at line 582 of file Anim.h.


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