Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
HMorphAnimClass Class Reference

#include <hmorphanim.h>

Inherits HAnimClass.

Public Types

enum  { OK , LOAD_ERROR }
 
- Public Types inherited from HAnimClass
enum  { CLASSID_UNKNOWNANIM = 0xFFFFFFFF , CLASSID_HRAWANIM = 0 , CLASSID_LASTANIM = 0x0000FFFF }
 

Public Member Functions

 HMorphAnimClass (void)
 
 ~HMorphAnimClass (void)
 
void Free_Morph (void)
 
int Create_New_Morph (const int channels, HAnimClass *anim[])
 
int Load_W3D (ChunkLoadClass &cload)
 
int Save_W3D (ChunkSaveClass &csave)
 
const char * Get_Name (void) const
 
const char * Get_HName (void) const
 
int Get_Num_Frames (void)
 
float Get_Frame_Rate ()
 
float Get_Total_Time ()
 
void Get_Translation (Vector3 &translation, int pividx, float frame) const
 
void Get_Orientation (Quaternion &orientation, int pividx, float frame) const
 
void Get_Transform (Matrix3D &transform, int pividx, float frame) const
 
bool Get_Visibility (int pividx, float frame)
 
void Insert_Morph_Key (const int channel, uint32 morph_frame, uint32 pose_frame)
 
void Release_Keys (void)
 
bool Is_Node_Motion_Present (int pividx)
 
int Get_Num_Pivots (void) const
 
void Set_Name (const char *name)
 
void Set_HName (const char *hname)
 
bool Import (const char *hierarchy_name, TextFileClass &text_desc)
 
- Public Member Functions inherited from HAnimClass
 HAnimClass (void)
 
virtual ~HAnimClass (void)
 
virtual const char * Get_Key (void)
 
virtual void Get_Translation (int pividx, float frame)
 
virtual void Get_Orientation (int pividx, float frame)
 
virtual bool Has_X_Translation (int pividx)
 
virtual bool Has_Y_Translation (int pividx)
 
virtual bool Has_Z_Translation (int pividx)
 
virtual bool Has_Rotation (int pividx)
 
virtual bool Has_Visibility (int pividx)
 
virtual int Class_ID (void) const
 
virtual bool Has_Embedded_Sounds (void) const
 
virtual void Set_Embedded_Sound_Bone_Index (int bone)
 
virtual int Get_Embedded_Sound_Bone_Index ()
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 
- Public Member Functions inherited from HashableClass
 HashableClass (void)
 
virtual ~HashableClass (void)
 

Protected Member Functions

void Free (void)
 
void read_channel (ChunkLoadClass &cload, int channel)
 
void write_channel (ChunkSaveClass &csave, int channel)
 
void Resolve_Pivot_Channels (void)
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

char Name [2 *W3D_NAME_LEN]
 
char AnimName [W3D_NAME_LEN]
 
char HierarchyName [W3D_NAME_LEN]
 
int FrameCount
 
float FrameRate
 
int ChannelCount
 
int NumNodes
 
HAnimClass ** PoseData
 
TimeCodedMorphKeysClassMorphKeyData
 
uint32PivotChannel
 
- Protected Attributes inherited from HAnimClass
int EmbeddedSoundBoneIndex
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Detailed Description

Definition at line 71 of file hmorphanim.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OK 
LOAD_ERROR 

Definition at line 76 of file hmorphanim.h.

Constructor & Destructor Documentation

◆ HMorphAnimClass()

HMorphAnimClass::HMorphAnimClass ( void )

Definition at line 193 of file hmorphanim.cpp.

◆ ~HMorphAnimClass()

HMorphAnimClass::~HMorphAnimClass ( void )

Definition at line 207 of file hmorphanim.cpp.

Member Function Documentation

◆ Create_New_Morph()

int HMorphAnimClass::Create_New_Morph ( const int channels,
HAnimClass * anim[] )

Definition at line 512 of file hmorphanim.cpp.

◆ Free()

void HMorphAnimClass::Free ( void )
protected

Definition at line 212 of file hmorphanim.cpp.

◆ Free_Morph()

void HMorphAnimClass::Free_Morph ( void )

Definition at line 507 of file hmorphanim.cpp.

◆ Get_Frame_Rate()

float HMorphAnimClass::Get_Frame_Rate ( )
inlinevirtual

Implements HAnimClass.

Definition at line 94 of file hmorphanim.h.

◆ Get_HName()

const char * HMorphAnimClass::Get_HName ( void ) const
inlinevirtual

Implements HAnimClass.

Definition at line 91 of file hmorphanim.h.

◆ Get_Name()

const char * HMorphAnimClass::Get_Name ( void ) const
inlinevirtual

Implements HAnimClass.

Definition at line 90 of file hmorphanim.h.

◆ Get_Num_Frames()

int HMorphAnimClass::Get_Num_Frames ( void )
inlinevirtual

Implements HAnimClass.

Definition at line 93 of file hmorphanim.h.

◆ Get_Num_Pivots()

int HMorphAnimClass::Get_Num_Pivots ( void ) const
inlinevirtual

Implements HAnimClass.

Definition at line 108 of file hmorphanim.h.

◆ Get_Orientation()

void HMorphAnimClass::Get_Orientation ( Quaternion & orientation,
int pividx,
float frame ) const
virtual

Implements HAnimClass.

Definition at line 688 of file hmorphanim.cpp.

◆ Get_Total_Time()

float HMorphAnimClass::Get_Total_Time ( )
inlinevirtual

Implements HAnimClass.

Definition at line 95 of file hmorphanim.h.

◆ Get_Transform()

void HMorphAnimClass::Get_Transform ( Matrix3D & transform,
int pividx,
float frame ) const
virtual

Implements HAnimClass.

Definition at line 702 of file hmorphanim.cpp.

◆ Get_Translation()

void HMorphAnimClass::Get_Translation ( Vector3 & translation,
int pividx,
float frame ) const
virtual

Implements HAnimClass.

Definition at line 674 of file hmorphanim.cpp.

◆ Get_Visibility()

bool HMorphAnimClass::Get_Visibility ( int pividx,
float frame )
inlinevirtual

Implements HAnimClass.

Definition at line 102 of file hmorphanim.h.

◆ Import()

bool HMorphAnimClass::Import ( const char * hierarchy_name,
TextFileClass & text_desc )

Definition at line 339 of file hmorphanim.cpp.

◆ Insert_Morph_Key()

void HMorphAnimClass::Insert_Morph_Key ( const int channel,
uint32 morph_frame,
uint32 pose_frame )

Definition at line 726 of file hmorphanim.cpp.

◆ Is_Node_Motion_Present()

bool HMorphAnimClass::Is_Node_Motion_Present ( int pividx)
inlinevirtual

Implements HAnimClass.

Definition at line 107 of file hmorphanim.h.

◆ Load_W3D()

int HMorphAnimClass::Load_W3D ( ChunkLoadClass & cload)

Definition at line 548 of file hmorphanim.cpp.

◆ read_channel()

void HMorphAnimClass::read_channel ( ChunkLoadClass & cload,
int channel )
protected

Definition at line 599 of file hmorphanim.cpp.

◆ Release_Keys()

void HMorphAnimClass::Release_Keys ( void )

Definition at line 735 of file hmorphanim.cpp.

◆ Resolve_Pivot_Channels()

void HMorphAnimClass::Resolve_Pivot_Channels ( void )
protected

Definition at line 458 of file hmorphanim.cpp.

◆ Save_W3D()

int HMorphAnimClass::Save_W3D ( ChunkSaveClass & csave)

Definition at line 623 of file hmorphanim.cpp.

◆ Set_HName()

void HMorphAnimClass::Set_HName ( const char * hname)

◆ Set_Name()

void HMorphAnimClass::Set_Name ( const char * name)

Definition at line 481 of file hmorphanim.cpp.

◆ write_channel()

void HMorphAnimClass::write_channel ( ChunkSaveClass & csave,
int channel )
protected

Definition at line 659 of file hmorphanim.cpp.

Member Data Documentation

◆ AnimName

char HMorphAnimClass::AnimName[W3D_NAME_LEN]
protected

Definition at line 123 of file hmorphanim.h.

◆ ChannelCount

int HMorphAnimClass::ChannelCount
protected

Definition at line 128 of file hmorphanim.h.

◆ FrameCount

int HMorphAnimClass::FrameCount
protected

Definition at line 126 of file hmorphanim.h.

◆ FrameRate

float HMorphAnimClass::FrameRate
protected

Definition at line 127 of file hmorphanim.h.

◆ HierarchyName

char HMorphAnimClass::HierarchyName[W3D_NAME_LEN]
protected

Definition at line 124 of file hmorphanim.h.

◆ MorphKeyData

TimeCodedMorphKeysClass* HMorphAnimClass::MorphKeyData
protected

Definition at line 132 of file hmorphanim.h.

◆ Name

char HMorphAnimClass::Name[2 *W3D_NAME_LEN]
protected

Definition at line 122 of file hmorphanim.h.

◆ NumNodes

int HMorphAnimClass::NumNodes
protected

Definition at line 129 of file hmorphanim.h.

◆ PivotChannel

uint32* HMorphAnimClass::PivotChannel
protected

Definition at line 133 of file hmorphanim.h.

◆ PoseData

HAnimClass** HMorphAnimClass::PoseData
protected

Definition at line 131 of file hmorphanim.h.


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