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

#include <htree.h>

Inherits W3DMPO.

Public Types

enum  { OK , LOAD_ERROR }
 

Public Member Functions

 HTreeClass (void)
 
 HTreeClass (const HTreeClass &src)
 
 ~HTreeClass (void)
 
int Load_W3D (ChunkLoadClass &cload)
 
void Init_Default (void)
 
WWINLINE const char * Get_Name (void) const
 
WWINLINE int Num_Pivots (void) const
 
int Get_Bone_Index (const char *name) const
 
const char * Get_Bone_Name (int boneid) const
 
int Get_Parent_Index (int bone_indx) const
 
void Base_Update (const Matrix3D &root)
 
void Anim_Update (const Matrix3D &root, HAnimClass *motion, float frame)
 
void Anim_Update (const Matrix3D &root, HRawAnimClass *motion, float frame)
 
void Blend_Update (const Matrix3D &root, HAnimClass *motion0, float frame0, HAnimClass *motion1, float frame1, float percentage)
 
void Combo_Update (const Matrix3D &root, HAnimComboClass *anim)
 
WWINLINE const Matrix3DGet_Transform (int pivot) const
 
WWINLINE bool Get_Visibility (int pivot) const
 
WWINLINE const Matrix3DGet_Root_Transform (void) const
 
void Capture_Bone (int boneindex)
 
void Release_Bone (int boneindex)
 
bool Is_Bone_Captured (int boneindex) const
 
void Control_Bone (int boneindex, const Matrix3D &relative_tm, bool world_space_translation=false)
 
void Get_Bone_Control (int boneindex, Matrix3D &relative_tm) const
 
bool Simple_Evaluate_Pivot (HAnimClass *motion, int pivot_index, float frame, const Matrix3D &obj_tm, Matrix3D *end_tm) const
 
bool Simple_Evaluate_Pivot (int pivot_index, const Matrix3D &obj_tm, Matrix3D *end_tm) const
 
void Scale (float factor)
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 

Static Public Member Functions

static HTreeClassAlter_Avatar_HTree (const HTreeClass *tree, Vector3 &scale)
 
static HTreeClassCreate_Morphed (int num_morph_sources, const float morph_weights[], const HTreeClass *tree_array[])
 
static HTreeClassCreate_Interpolated (const HTreeClass *tree_a0_b0, const HTreeClass *tree_a0_b1, const HTreeClass *tree_a1_b0, const HTreeClass *tree_a1_b1, float lerp_a, float lerp_b)
 
static HTreeClassCreate_Interpolated (const HTreeClass *tree_base, const HTreeClass *tree_a, const HTreeClass *tree_b, float a_scale, float b_scale)
 

Friends

class MeshClass
 

Additional Inherited Members

- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 

Detailed Description

Definition at line 74 of file htree.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OK 
LOAD_ERROR 

Definition at line 79 of file htree.h.

Constructor & Destructor Documentation

◆ HTreeClass() [1/2]

HTreeClass::HTreeClass ( void )

Definition at line 78 of file htree.cpp.

◆ HTreeClass() [2/2]

HTreeClass::HTreeClass ( const HTreeClass & src)

Definition at line 139 of file htree.cpp.

◆ ~HTreeClass()

HTreeClass::~HTreeClass ( void )

Definition at line 118 of file htree.cpp.

Member Function Documentation

◆ Alter_Avatar_HTree()

HTreeClass * HTreeClass::Alter_Avatar_HTree ( const HTreeClass * tree,
Vector3 & scale )
static

Definition at line 1072 of file htree.cpp.

◆ Anim_Update() [1/2]

void HTreeClass::Anim_Update ( const Matrix3D & root,
HAnimClass * motion,
float frame )

Definition at line 562 of file htree.cpp.

◆ Anim_Update() [2/2]

void HTreeClass::Anim_Update ( const Matrix3D & root,
HRawAnimClass * motion,
float frame )

Definition at line 611 of file htree.cpp.

◆ Base_Update()

void HTreeClass::Base_Update ( const Matrix3D & root)

Definition at line 531 of file htree.cpp.

◆ Blend_Update()

void HTreeClass::Blend_Update ( const Matrix3D & root,
HAnimClass * motion0,
float frame0,
HAnimClass * motion1,
float frame1,
float percentage )

Definition at line 700 of file htree.cpp.

◆ Capture_Bone()

void HTreeClass::Capture_Bone ( int boneindex)

Definition at line 1001 of file htree.cpp.

◆ Combo_Update()

void HTreeClass::Combo_Update ( const Matrix3D & root,
HAnimComboClass * anim )

Definition at line 772 of file htree.cpp.

◆ Control_Bone()

void HTreeClass::Control_Bone ( int boneindex,
const Matrix3D & relative_tm,
bool world_space_translation = false )

Definition at line 1038 of file htree.cpp.

◆ Create_Interpolated() [1/2]

HTreeClass * HTreeClass::Create_Interpolated ( const HTreeClass * tree_a0_b0,
const HTreeClass * tree_a0_b1,
const HTreeClass * tree_a1_b0,
const HTreeClass * tree_a1_b1,
float lerp_a,
float lerp_b )
static

Definition at line 1163 of file htree.cpp.

◆ Create_Interpolated() [2/2]

HTreeClass * HTreeClass::Create_Interpolated ( const HTreeClass * tree_base,
const HTreeClass * tree_a,
const HTreeClass * tree_b,
float a_scale,
float b_scale )
static

Definition at line 1195 of file htree.cpp.

◆ Create_Morphed()

HTreeClass * HTreeClass::Create_Morphed ( int num_morph_sources,
const float morph_weights[],
const HTreeClass * tree_array[] )
static

Definition at line 1129 of file htree.cpp.

◆ Get_Bone_Control()

void HTreeClass::Get_Bone_Control ( int boneindex,
Matrix3D & relative_tm ) const

Definition at line 1055 of file htree.cpp.

◆ Get_Bone_Index()

int HTreeClass::Get_Bone_Index ( const char * name) const

Definition at line 922 of file htree.cpp.

◆ Get_Bone_Name()

const char * HTreeClass::Get_Bone_Name ( int boneid) const

Definition at line 945 of file htree.cpp.

◆ Get_Name()

WWINLINE const char * HTreeClass::Get_Name ( void ) const
inline

Definition at line 92 of file htree.h.

◆ Get_Parent_Index()

int HTreeClass::Get_Parent_Index ( int bone_indx) const

Definition at line 968 of file htree.cpp.

◆ Get_Root_Transform()

WWINLINE const Matrix3D & HTreeClass::Get_Root_Transform ( void ) const

Definition at line 178 of file htree.h.

◆ Get_Transform()

WWINLINE const Matrix3D & HTreeClass::Get_Transform ( int pivot) const

Definition at line 202 of file htree.h.

◆ Get_Visibility()

WWINLINE bool HTreeClass::Get_Visibility ( int pivot) const

Definition at line 183 of file htree.h.

◆ Init_Default()

void HTreeClass::Init_Default ( void )

Definition at line 85 of file htree.cpp.

◆ Is_Bone_Captured()

bool HTreeClass::Is_Bone_Captured ( int boneindex) const

Definition at line 1031 of file htree.cpp.

◆ Load_W3D()

int HTreeClass::Load_W3D ( ChunkLoadClass & cload)

Definition at line 176 of file htree.cpp.

◆ Num_Pivots()

WWINLINE int HTreeClass::Num_Pivots ( void ) const
inline

Definition at line 93 of file htree.h.

◆ Release_Bone()

void HTreeClass::Release_Bone ( int boneindex)

Definition at line 1016 of file htree.cpp.

◆ Scale()

void HTreeClass::Scale ( float factor)

Definition at line 982 of file htree.cpp.

◆ Simple_Evaluate_Pivot() [1/2]

bool HTreeClass::Simple_Evaluate_Pivot ( HAnimClass * motion,
int pivot_index,
float frame,
const Matrix3D & obj_tm,
Matrix3D * end_tm ) const

Definition at line 383 of file htree.cpp.

◆ Simple_Evaluate_Pivot() [2/2]

bool HTreeClass::Simple_Evaluate_Pivot ( int pivot_index,
const Matrix3D & obj_tm,
Matrix3D * end_tm ) const

Definition at line 469 of file htree.cpp.

Friends And Related Symbol Documentation

◆ MeshClass

friend class MeshClass
friend

Definition at line 172 of file htree.h.


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