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 | Friends | List of all members
idAnimBlend Class Reference

#include <Anim.h>

Public Member Functions

 idAnimBlend ()
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile, const idDeclModelDef *modelDef)
 
const char * AnimName (void) const
 
const char * AnimFullName (void) const
 
float GetWeight (int currenttime) const
 
float GetFinalWeight (void) const
 
void SetWeight (float newweight, int currenttime, int blendtime)
 
int NumSyncedAnims (void) const
 
bool SetSyncedAnimWeight (int num, float weight)
 
void Clear (int currentTime, int clearTime)
 
bool IsDone (int currentTime) const
 
bool FrameHasChanged (int currentTime) const
 
int GetCycleCount (void) const
 
void SetCycleCount (int count)
 
void SetPlaybackRate (int currentTime, float newRate)
 
float GetPlaybackRate (void) const
 
void SetStartTime (int startTime)
 
int GetStartTime (void) const
 
int GetEndTime (void) const
 
int GetFrameNumber (int currenttime) const
 
int AnimTime (int currenttime) const
 
int NumFrames (void) const
 
int Length (void) const
 
int PlayLength (void) const
 
void AllowMovement (bool allow)
 
void AllowFrameCommands (bool allow)
 
const idAnimAnim (void) const
 
int AnimNum (void) const
 

Private Member Functions

void Reset (const idDeclModelDef *_modelDef)
 
void CallFrameCommands (idEntity *ent, int fromtime, int totime) const
 
void SetFrame (const idDeclModelDef *modelDef, int animnum, int frame, int currenttime, int blendtime)
 
void CycleAnim (const idDeclModelDef *modelDef, int animnum, int currenttime, int blendtime)
 
void PlayAnim (const idDeclModelDef *modelDef, int animnum, int currenttime, int blendtime)
 
bool BlendAnim (int currentTime, int channel, int numJoints, idJointQuat *blendFrame, float &blendWeight, bool removeOrigin, bool overrideBlend, bool printInfo) const
 
void BlendOrigin (int currentTime, idVec3 &blendPos, float &blendWeight, bool removeOriginOffset) const
 
void BlendDelta (int fromtime, int totime, idVec3 &blendDelta, float &blendWeight) const
 
void BlendDeltaRotation (int fromtime, int totime, idQuat &blendDelta, float &blendWeight) const
 
bool AddBounds (int currentTime, idBounds &bounds, bool removeOriginOffset) const
 

Private Attributes

const class idDeclModelDefmodelDef
 
int starttime
 
int endtime
 
int timeOffset
 
float rate
 
int blendStartTime
 
int blendDuration
 
float blendStartValue
 
float blendEndValue
 
float animWeights [ANIM_MaxSyncedAnims]
 
short cycle
 
short frame
 
short animNum
 
bool allowMove
 
bool allowFrameCommands
 

Friends

class idAnimator
 

Detailed Description

Definition at line 384 of file Anim.h.

Constructor & Destructor Documentation

idAnimBlend::idAnimBlend ( void  )

Definition at line 1102 of file Anim_Blend.cpp.

Member Function Documentation

bool idAnimBlend::AddBounds ( int  currentTime,
idBounds bounds,
bool  removeOriginOffset 
) const
private

Definition at line 2121 of file Anim_Blend.cpp.

void idAnimBlend::AllowFrameCommands ( bool  allow)

Definition at line 1665 of file Anim_Blend.cpp.

void idAnimBlend::AllowMovement ( bool  allow)

Definition at line 1656 of file Anim_Blend.cpp.

const idAnim * idAnimBlend::Anim ( void  ) const

Definition at line 1675 of file Anim_Blend.cpp.

const char * idAnimBlend::AnimFullName ( void  ) const

Definition at line 1204 of file Anim_Blend.cpp.

const char * idAnimBlend::AnimName ( void  ) const

Definition at line 1218 of file Anim_Blend.cpp.

int idAnimBlend::AnimNum ( void  ) const

Definition at line 1689 of file Anim_Blend.cpp.

int idAnimBlend::AnimTime ( int  currenttime) const

Definition at line 1698 of file Anim_Blend.cpp.

bool idAnimBlend::BlendAnim ( int  currentTime,
int  channel,
int  numJoints,
idJointQuat blendFrame,
float blendWeight,
bool  removeOrigin,
bool  overrideBlend,
bool  printInfo 
) const
private

Definition at line 1809 of file Anim_Blend.cpp.

void idAnimBlend::BlendDelta ( int  fromtime,
int  totime,
idVec3 blendDelta,
float blendWeight 
) const
private

Definition at line 1993 of file Anim_Blend.cpp.

void idAnimBlend::BlendDeltaRotation ( int  fromtime,
int  totime,
idQuat blendDelta,
float blendWeight 
) const
private

Definition at line 2052 of file Anim_Blend.cpp.

void idAnimBlend::BlendOrigin ( int  currentTime,
idVec3 blendPos,
float blendWeight,
bool  removeOriginOffset 
) const
private

Definition at line 1943 of file Anim_Blend.cpp.

void idAnimBlend::CallFrameCommands ( idEntity ent,
int  fromtime,
int  totime 
) const
private

Definition at line 1764 of file Anim_Blend.cpp.

void idAnimBlend::Clear ( int  currentTime,
int  clearTime 
)

Definition at line 1459 of file Anim_Blend.cpp.

void idAnimBlend::CycleAnim ( const idDeclModelDef modelDef,
int  animnum,
int  currenttime,
int  blendtime 
)
private

Definition at line 1384 of file Anim_Blend.cpp.

bool idAnimBlend::FrameHasChanged ( int  currentTime) const

Definition at line 1489 of file Anim_Blend.cpp.

int idAnimBlend::GetCycleCount ( void  ) const

Definition at line 1518 of file Anim_Blend.cpp.

int idAnimBlend::GetEndTime ( void  ) const

Definition at line 1626 of file Anim_Blend.cpp.

float idAnimBlend::GetFinalWeight ( void  ) const

Definition at line 1283 of file Anim_Blend.cpp.

int idAnimBlend::GetFrameNumber ( int  currenttime) const

Definition at line 1738 of file Anim_Blend.cpp.

float idAnimBlend::GetPlaybackRate ( void  ) const

Definition at line 1592 of file Anim_Blend.cpp.

int idAnimBlend::GetStartTime ( void  ) const

Definition at line 1613 of file Anim_Blend.cpp.

float idAnimBlend::GetWeight ( int  currenttime) const

Definition at line 1260 of file Anim_Blend.cpp.

bool idAnimBlend::IsDone ( int  currentTime) const

Definition at line 1472 of file Anim_Blend.cpp.

int idAnimBlend::Length ( void  ) const

Definition at line 1246 of file Anim_Blend.cpp.

int idAnimBlend::NumFrames ( void  ) const

Definition at line 1232 of file Anim_Blend.cpp.

int idAnimBlend::NumSyncedAnims ( void  ) const

Definition at line 1308 of file Anim_Blend.cpp.

void idAnimBlend::PlayAnim ( const idDeclModelDef modelDef,
int  animnum,
int  currenttime,
int  blendtime 
)
private

Definition at line 1424 of file Anim_Blend.cpp.

int idAnimBlend::PlayLength ( void  ) const

Definition at line 1639 of file Anim_Blend.cpp.

void idAnimBlend::Reset ( const idDeclModelDef _modelDef)
private

Definition at line 1179 of file Anim_Blend.cpp.

void idAnimBlend::Restore ( idRestoreGame savefile,
const idDeclModelDef modelDef 
)

Definition at line 1143 of file Anim_Blend.cpp.

void idAnimBlend::Save ( idSaveGame savefile) const

Definition at line 1113 of file Anim_Blend.cpp.

void idAnimBlend::SetCycleCount ( int  count)

Definition at line 1527 of file Anim_Blend.cpp.

void idAnimBlend::SetFrame ( const idDeclModelDef modelDef,
int  animnum,
int  frame,
int  currenttime,
int  blendtime 
)
private

Definition at line 1341 of file Anim_Blend.cpp.

void idAnimBlend::SetPlaybackRate ( int  currentTime,
float  newRate 
)

Definition at line 1567 of file Anim_Blend.cpp.

void idAnimBlend::SetStartTime ( int  startTime)

Definition at line 1601 of file Anim_Blend.cpp.

bool idAnimBlend::SetSyncedAnimWeight ( int  num,
float  weight 
)

Definition at line 1322 of file Anim_Blend.cpp.

void idAnimBlend::SetWeight ( float  newweight,
int  currenttime,
int  blendtime 
)

Definition at line 1292 of file Anim_Blend.cpp.

Friends And Related Function Documentation

friend class idAnimator
friend

Definition at line 404 of file Anim.h.

Member Data Documentation

bool idAnimBlend::allowFrameCommands
private

Definition at line 402 of file Anim.h.

bool idAnimBlend::allowMove
private

Definition at line 401 of file Anim.h.

short idAnimBlend::animNum
private

Definition at line 400 of file Anim.h.

float idAnimBlend::animWeights[ANIM_MaxSyncedAnims]
private

Definition at line 397 of file Anim.h.

int idAnimBlend::blendDuration
private

Definition at line 393 of file Anim.h.

float idAnimBlend::blendEndValue
private

Definition at line 395 of file Anim.h.

int idAnimBlend::blendStartTime
private

Definition at line 392 of file Anim.h.

float idAnimBlend::blendStartValue
private

Definition at line 394 of file Anim.h.

short idAnimBlend::cycle
private

Definition at line 398 of file Anim.h.

int idAnimBlend::endtime
private

Definition at line 388 of file Anim.h.

short idAnimBlend::frame
private

Definition at line 399 of file Anim.h.

const class idDeclModelDef* idAnimBlend::modelDef
private

Definition at line 386 of file Anim.h.

float idAnimBlend::rate
private

Definition at line 390 of file Anim.h.

int idAnimBlend::starttime
private

Definition at line 387 of file Anim.h.

int idAnimBlend::timeOffset
private

Definition at line 389 of file Anim.h.


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