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

#include <MeshDeformData.h>

Inherits LocalModData.

Public Member Functions

 MeshDeformModData (void)
 
virtual ~MeshDeformModData (void)
 
virtual LocalModData * Clone (void)
 
void Record_Mesh_State (TriObject &tri_obj, float state, bool update_all)
 
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
 
bool Is_Auto_Apply (void) const
 
void Auto_Apply (bool auto_apply=true)
 
void Update_Current_Data (void)
 
void Set_Vertex_Position (int index, const Point3 &value)
 
void Set_Vertex_Color (int index, int color_index, const VertColor &value)
 
void Set_Max_Deform_Sets (int max)
 
void Set_Current_Set (int set_index)
 
int Get_Current_Set (void) const
 
void Select_Set (int set_index)
 
void Update_Set (int set_index, DEFORM_CHANNELS flags)
 
void Restore_Set (int set_index=-1)
 
MeshDeformSetClassPeek_Set (int index)
 
int Get_Set_Count (void) const
 
IOResult Save (ISave *save_obj)
 
IOResult Load (ILoad *load_obj)
 

Protected Member Functions

void Resize_Vertex_Array (int count, int color_count)
 
void Copy_Vertex_Array (Mesh &mesh)
 
void Free_Sets_List (void)
 
void Util_Restore_Set (int set_index)
 

Detailed Description

Definition at line 58 of file MeshDeformData.h.

Constructor & Destructor Documentation

◆ MeshDeformModData()

MeshDeformModData::MeshDeformModData ( void )
inline

Definition at line 65 of file MeshDeformData.h.

◆ ~MeshDeformModData()

MeshDeformModData::~MeshDeformModData ( void )
virtual

Definition at line 48 of file MeshDeformData.cpp.

Member Function Documentation

◆ Auto_Apply()

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

Definition at line 84 of file MeshDeformData.h.

◆ Clone()

virtual LocalModData * MeshDeformModData::Clone ( void )
inlinevirtual

Definition at line 73 of file MeshDeformData.h.

◆ Copy_Vertex_Array()

void MeshDeformModData::Copy_Vertex_Array ( Mesh & mesh)
protected

◆ Free_Sets_List()

void MeshDeformModData::Free_Sets_List ( void )
protected

Definition at line 91 of file MeshDeformData.cpp.

◆ Get_Current_Set()

int MeshDeformModData::Get_Current_Set ( void ) const
inline

Definition at line 94 of file MeshDeformData.h.

◆ Get_Set_Count()

int MeshDeformModData::Get_Set_Count ( void ) const
inline

Definition at line 99 of file MeshDeformData.h.

◆ Is_Auto_Apply()

bool MeshDeformModData::Is_Auto_Apply ( void ) const
inline

Definition at line 83 of file MeshDeformData.h.

◆ Load()

IOResult MeshDeformModData::Load ( ILoad * load_obj)

Definition at line 210 of file MeshDeformData.cpp.

◆ Peek_Mesh()

Mesh * MeshDeformModData::Peek_Mesh ( void ) const
inline

Definition at line 77 of file MeshDeformData.h.

◆ Peek_Orig_Vertex_Array()

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

Definition at line 78 of file MeshDeformData.h.

◆ Peek_Set()

MeshDeformSetClass & MeshDeformModData::Peek_Set ( int index)
inline

Definition at line 98 of file MeshDeformData.h.

◆ Peek_Vertex_Colors()

VertColor * MeshDeformModData::Peek_Vertex_Colors ( void ) const
inline

Definition at line 80 of file MeshDeformData.h.

◆ Peek_Vertex_OPStart_Array()

Point3 * MeshDeformModData::Peek_Vertex_OPStart_Array ( void ) const
inline

Definition at line 79 of file MeshDeformData.h.

◆ Record_Mesh_State()

void MeshDeformModData::Record_Mesh_State ( TriObject & tri_obj,
float state,
bool update_all )

Definition at line 61 of file MeshDeformData.cpp.

◆ Resize_Vertex_Array()

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

◆ Restore_Set()

void MeshDeformModData::Restore_Set ( int set_index = -1)

Definition at line 155 of file MeshDeformData.cpp.

◆ Save()

IOResult MeshDeformModData::Save ( ISave * save_obj)

Definition at line 178 of file MeshDeformData.cpp.

◆ Select_Set()

void MeshDeformModData::Select_Set ( int set_index)
inline

Definition at line 95 of file MeshDeformData.h.

◆ Set_Current_Set()

void MeshDeformModData::Set_Current_Set ( int set_index)
inline

Definition at line 93 of file MeshDeformData.h.

◆ Set_Max_Deform_Sets()

void MeshDeformModData::Set_Max_Deform_Sets ( int max)

Definition at line 113 of file MeshDeformData.cpp.

◆ Set_Vertex_Color()

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

Definition at line 89 of file MeshDeformData.h.

◆ Set_Vertex_Position()

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

Definition at line 88 of file MeshDeformData.h.

◆ Update_Current_Data()

void MeshDeformModData::Update_Current_Data ( void )
inline

Definition at line 87 of file MeshDeformData.h.

◆ Update_Set()

void MeshDeformModData::Update_Set ( int set_index,
DEFORM_CHANNELS flags )
inline

Definition at line 96 of file MeshDeformData.h.

◆ Util_Restore_Set()

void MeshDeformModData::Util_Restore_Set ( int set_index)
protected

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