Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Model Class Reference

#include <Model.h>

Inheritance diagram for Model:

Inheritance graph
[legend]
Collaboration diagram for Model:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Model ()
virtual ~Model ()
void Clear ()
void Load (CString sFile)
void LoadPieces (CString sMeshesPath, CString sMaterialsPath, CString sBomesPath)
void LoadFromModelFile (CString sFile)
void LoadMilkshapeAscii (CString sFile)
void LoadMaterialsFromMilkshapeAscii (CString sPath)
bool LoadMilkshapeAsciiBones (CString sAniName, CString sPath)
void PlayAnimation (CString sAniName, float fPlayRate=1)
virtual void Update (float fDelta)
virtual bool EarlyAbortDraw ()
virtual void DrawPrimitives ()
void AdvanceFrame (float dt)
void DrawCelShaded ()
virtual int GetNumStates () const
virtual void SetState (int iNewState)
virtual float GetAnimationLengthSeconds () const
virtual void SetSecondsIntoAnimation (float fSeconds)
CString GetDefaultAnimation ()
void SetDefaultAnimation (CString sAnimation, float fPlayRate=1)
bool MaterialsNeedNormals () const
virtual void PushSelf (lua_State *L)

Public Attributes

bool m_bRevertToDefaultAnimation

Private Member Functions

void UpdateTempGeometry ()
void DrawMesh (int i) const

Static Private Member Functions

void SetBones (const msAnimation *pAnimation, float fFrame, vector< myBone_t > &vpBones)

Private Attributes

RageModelGeometrym_pGeometry
vector< msMaterialm_Materials
map< CString, msAnimationm_mapNameToAnimation
const msAnimationm_pCurAnimation
vector< myBone_tm_vpBones
RageCompiledGeometrym_pTempGeometry
vector< msMeshm_vTempMeshes
float m_fCurFrame
CString m_sDefaultAnimation
float m_fDefaultAnimationRate
float m_fCurAnimationRate

Constructor & Destructor Documentation

Model::Model  ) 
 

Model::~Model  )  [virtual]
 


Member Function Documentation

void Model::AdvanceFrame float  dt  ) 
 

void Model::Clear  ) 
 

void Model::DrawCelShaded  ) 
 

void Model::DrawMesh int  i  )  const [private]
 

void Model::DrawPrimitives  )  [virtual]
 

Reimplemented from Actor.

bool Model::EarlyAbortDraw  )  [virtual]
 

Reimplemented from Actor.

float Model::GetAnimationLengthSeconds  )  const [virtual]
 

Reimplemented from Actor.

CString Model::GetDefaultAnimation  )  [inline]
 

int Model::GetNumStates  )  const [virtual]
 

Reimplemented from Actor.

void Model::Load CString  sFile  ) 
 

void Model::LoadFromModelFile CString  sFile  ) 
 

void Model::LoadMaterialsFromMilkshapeAscii CString  sPath  ) 
 

void Model::LoadMilkshapeAscii CString  sFile  ) 
 

bool Model::LoadMilkshapeAsciiBones CString  sAniName,
CString  sPath
 

void Model::LoadPieces CString  sMeshesPath,
CString  sMaterialsPath,
CString  sBomesPath
 

bool Model::MaterialsNeedNormals  )  const
 

void Model::PlayAnimation CString  sAniName,
float  fPlayRate = 1
 

void Model::PushSelf lua_State *  L  )  [virtual]
 

Reimplemented from Actor.

void Model::SetBones const msAnimation pAnimation,
float  fFrame,
vector< myBone_t > &  vpBones
[static, private]
 

void Model::SetDefaultAnimation CString  sAnimation,
float  fPlayRate = 1
 

void Model::SetSecondsIntoAnimation float  fSeconds  )  [virtual]
 

Reimplemented from Actor.

void Model::SetState int  iNewState  )  [virtual]
 

Reimplemented from Actor.

void Model::Update float  fDelta  )  [virtual]
 

Reimplemented from Actor.

void Model::UpdateTempGeometry  )  [private]
 


Member Data Documentation

bool Model::m_bRevertToDefaultAnimation
 

float Model::m_fCurAnimationRate [private]
 

float Model::m_fCurFrame [private]
 

float Model::m_fDefaultAnimationRate [private]
 

map<CString,msAnimation> Model::m_mapNameToAnimation [private]
 

vector<msMaterial> Model::m_Materials [private]
 

const msAnimation* Model::m_pCurAnimation [private]
 

RageModelGeometry* Model::m_pGeometry [private]
 

RageCompiledGeometry* Model::m_pTempGeometry [private]
 

CString Model::m_sDefaultAnimation [private]
 

vector<myBone_t> Model::m_vpBones [private]
 

vector<msMesh> Model::m_vTempMeshes [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 21:00:00 2005 for StepMania by doxygen 1.3.7