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

#include <MeshDeformSet.h>

Public Member Functions

 MeshDeformSetClass (void)
 
virtual ~MeshDeformSetClass (void)
 
void Update_Mesh (TriObject &tri_obj)
 
void Set_State (float state)
 
Mesh * Peek_Mesh (void) const
 
const Point3 * Peek_Orig_Vertex_Array (void) const
 
Point3 * Peek_Vertex_OPStart_Array (void) const
 
VertColor * Peek_Vertex_Colors (void) const
 
void Set_Current_Key_Frame (int index)
 
int Get_Current_Key_Frame (void) const
 
void Update_Key_Frame (int key_frame)
 
void Update_Current_Data (void)
 
void Update_Set_Members (void)
 
void Collapse_Keyframe_Data (int keyframe)
 
void Reset_Key_Frame_Verts (int keyframe)
 
void Reset_Key_Frame_Colors (int keyframe)
 
void Set_Vertex_Position (int index, const Point3 &value)
 
void Set_Vertex_Color (int index, int color_index, const VertColor &value)
 
void Select_Members (void)
 
void Update_Members (DEFORM_CHANNELS flags)
 
void Restore_Members (void)
 
bool Does_Set_Auto_Apply (void) const
 
void Auto_Apply (bool auto_apply=true)
 
bool Is_Empty (void) const
 
int Get_Vertex_Count (int keyframe) const
 
int Get_Color_Count (int keyframe) const
 
const VERT_INFOGet_Vertex_Data (int keyframe, int index) const
 
const VERT_INFOGet_Color_Data (int keyframe, int index) const
 
IOResult Save (ISave *save_obj)
 
IOResult Load (ILoad *load_obj)
 
void Save (MeshBuilderClass &builder, Mesh &mesh, MeshDeformSaveSetClass &save_set, Matrix3 *transform=NULL)
 

Protected Member Functions

void Resize_Vertex_Array (int count, int color_count)
 
void Copy_Vertex_Array (Mesh &mesh)
 
void Init_Key_Frames (void)
 
void Free_Key_Frames (void)
 
void Determine_Interpolation_Indicies (int key_frame, bool position, int &from, int &to, float &state)
 
void Apply_Position_Changes (UINT vert, int frame_to_check, Point3 &position, Matrix3 *transform=NULL)
 
void Apply_Color_Changes (UINT vert, int frame_to_check, Mesh &mesh)
 
void Apply_Color_Changes (UINT vert_index, UINT vert_color_index, int frame_to_check, VertColor &color)
 

Detailed Description

Definition at line 56 of file MeshDeformSet.h.

Constructor & Destructor Documentation

◆ MeshDeformSetClass()

MeshDeformSetClass::MeshDeformSetClass ( void )
inline

Definition at line 68 of file MeshDeformSet.h.

◆ ~MeshDeformSetClass()

MeshDeformSetClass::~MeshDeformSetClass ( void )
virtual

Definition at line 58 of file MeshDeformSet.cpp.

Member Function Documentation

◆ Apply_Color_Changes() [1/2]

void MeshDeformSetClass::Apply_Color_Changes ( UINT vert,
int frame_to_check,
Mesh & mesh )
protected

Definition at line 731 of file MeshDeformSet.cpp.

◆ Apply_Color_Changes() [2/2]

void MeshDeformSetClass::Apply_Color_Changes ( UINT vert_index,
UINT vert_color_index,
int frame_to_check,
VertColor & color )
protected

Definition at line 815 of file MeshDeformSet.cpp.

◆ Apply_Position_Changes()

void MeshDeformSetClass::Apply_Position_Changes ( UINT vert,
int frame_to_check,
Point3 & position,
Matrix3 * transform = NULL )
protected

Definition at line 633 of file MeshDeformSet.cpp.

◆ Auto_Apply()

void MeshDeformSetClass::Auto_Apply ( bool auto_apply = true)
inline

Definition at line 115 of file MeshDeformSet.h.

◆ Collapse_Keyframe_Data()

void MeshDeformSetClass::Collapse_Keyframe_Data ( int keyframe)

Definition at line 182 of file MeshDeformSet.cpp.

◆ Copy_Vertex_Array()

void MeshDeformSetClass::Copy_Vertex_Array ( Mesh & mesh)
protected

Definition at line 475 of file MeshDeformSet.cpp.

◆ Determine_Interpolation_Indicies()

void MeshDeformSetClass::Determine_Interpolation_Indicies ( int key_frame,
bool position,
int & from,
int & to,
float & state )
protected

Definition at line 574 of file MeshDeformSet.cpp.

◆ Does_Set_Auto_Apply()

bool MeshDeformSetClass::Does_Set_Auto_Apply ( void ) const
inline

Definition at line 114 of file MeshDeformSet.h.

◆ Free_Key_Frames()

void MeshDeformSetClass::Free_Key_Frames ( void )
protected

Definition at line 454 of file MeshDeformSet.cpp.

◆ Get_Color_Count()

int MeshDeformSetClass::Get_Color_Count ( int keyframe) const
inline

Definition at line 120 of file MeshDeformSet.h.

◆ Get_Color_Data()

const VERT_INFO & MeshDeformSetClass::Get_Color_Data ( int keyframe,
int index ) const
inline

Definition at line 122 of file MeshDeformSet.h.

◆ Get_Current_Key_Frame()

int MeshDeformSetClass::Get_Current_Key_Frame ( void ) const
inline

Definition at line 96 of file MeshDeformSet.h.

◆ Get_Vertex_Count()

int MeshDeformSetClass::Get_Vertex_Count ( int keyframe) const
inline

Definition at line 119 of file MeshDeformSet.h.

◆ Get_Vertex_Data()

const VERT_INFO & MeshDeformSetClass::Get_Vertex_Data ( int keyframe,
int index ) const
inline

Definition at line 121 of file MeshDeformSet.h.

◆ Init_Key_Frames()

void MeshDeformSetClass::Init_Key_Frames ( void )
protected

Definition at line 434 of file MeshDeformSet.cpp.

◆ Is_Empty()

bool MeshDeformSetClass::Is_Empty ( void ) const

Definition at line 1204 of file MeshDeformSet.cpp.

◆ Load()

IOResult MeshDeformSetClass::Load ( ILoad * load_obj)

Definition at line 1434 of file MeshDeformSet.cpp.

◆ Peek_Mesh()

Mesh * MeshDeformSetClass::Peek_Mesh ( void ) const
inline

Definition at line 89 of file MeshDeformSet.h.

◆ Peek_Orig_Vertex_Array()

const Point3 * MeshDeformSetClass::Peek_Orig_Vertex_Array ( void ) const
inline

Definition at line 90 of file MeshDeformSet.h.

◆ Peek_Vertex_Colors()

VertColor * MeshDeformSetClass::Peek_Vertex_Colors ( void ) const
inline

Definition at line 92 of file MeshDeformSet.h.

◆ Peek_Vertex_OPStart_Array()

Point3 * MeshDeformSetClass::Peek_Vertex_OPStart_Array ( void ) const
inline

Definition at line 91 of file MeshDeformSet.h.

◆ Reset_Key_Frame_Colors()

void MeshDeformSetClass::Reset_Key_Frame_Colors ( int keyframe)

Definition at line 263 of file MeshDeformSet.cpp.

◆ Reset_Key_Frame_Verts()

void MeshDeformSetClass::Reset_Key_Frame_Verts ( int keyframe)

Definition at line 238 of file MeshDeformSet.cpp.

◆ Resize_Vertex_Array()

void MeshDeformSetClass::Resize_Vertex_Array ( int count,
int color_count )
protected

Definition at line 503 of file MeshDeformSet.cpp.

◆ Restore_Members()

void MeshDeformSetClass::Restore_Members ( void )

Definition at line 1142 of file MeshDeformSet.cpp.

◆ Save() [1/2]

IOResult MeshDeformSetClass::Save ( ISave * save_obj)

Definition at line 1319 of file MeshDeformSet.cpp.

◆ Save() [2/2]

void MeshDeformSetClass::Save ( MeshBuilderClass & builder,
Mesh & mesh,
MeshDeformSaveSetClass & save_set,
Matrix3 * transform = NULL )

Definition at line 1226 of file MeshDeformSet.cpp.

◆ Select_Members()

void MeshDeformSetClass::Select_Members ( void )

Definition at line 1123 of file MeshDeformSet.cpp.

◆ Set_Current_Key_Frame()

void MeshDeformSetClass::Set_Current_Key_Frame ( int index)

Definition at line 75 of file MeshDeformSet.cpp.

◆ Set_State()

void MeshDeformSetClass::Set_State ( float state)

Definition at line 559 of file MeshDeformSet.cpp.

◆ Set_Vertex_Color()

void MeshDeformSetClass::Set_Vertex_Color ( int index,
int color_index,
const VertColor & value )

Definition at line 121 of file MeshDeformSet.cpp.

◆ Set_Vertex_Position()

void MeshDeformSetClass::Set_Vertex_Position ( int index,
const Point3 & value )

Definition at line 91 of file MeshDeformSet.cpp.

◆ Update_Current_Data()

void MeshDeformSetClass::Update_Current_Data ( void )

Definition at line 288 of file MeshDeformSet.cpp.

◆ Update_Key_Frame()

void MeshDeformSetClass::Update_Key_Frame ( int key_frame)

Definition at line 374 of file MeshDeformSet.cpp.

◆ Update_Members()

void MeshDeformSetClass::Update_Members ( DEFORM_CHANNELS flags)

Definition at line 1051 of file MeshDeformSet.cpp.

◆ Update_Mesh()

void MeshDeformSetClass::Update_Mesh ( TriObject & tri_obj)

Definition at line 897 of file MeshDeformSet.cpp.

◆ Update_Set_Members()

void MeshDeformSetClass::Update_Set_Members ( void )

Definition at line 152 of file MeshDeformSet.cpp.


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