MercuryModel Class Reference

Generic type of multi-mesh 3d model. More...

#include <MercuryModel.h>

Inheritance diagram for MercuryModel:

Inheritance graph
[legend]
Collaboration diagram for MercuryModel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryModel ()
virtual ~MercuryModel ()
void AddMesh (MercuryMesh *mesh)
unsigned int NumMeshes () const
MercuryMeshGetMesh (unsigned int i) const
void AddMaterial (MercuryMaterial *material)
unsigned int NumMaterials () const
MercuryMaterialGetMaterial (unsigned int i)
void Load (MString path)
virtual bool Command (PStack &ret, const char *command, PStack &args)
 Handle a message, by default, it returns false, meaning the command was not handled.
virtual void EnumerateCommands (MVector< MString > &toAdd)
bool ReadLine ()
 CLASS_RTTI (MercuryModel, MercuryObject)

Protected Member Functions

void OpenFile (const MString &path)
void CloseFile ()
virtual void LoadModel ()=0

Protected Attributes

MercuryFilem_file
MString m_path
MString m_filename
MString m_line
MVector< MAutoPtr< MercuryMaterial > > m_materials
MVector< MercuryMesh * > m_meshes

Detailed Description

Generic type of multi-mesh 3d model.

Definition at line 14 of file MercuryModel.h.


Constructor & Destructor Documentation

MercuryModel::MercuryModel (  ) 

Definition at line 7 of file MercuryModel.cpp.

MercuryModel::~MercuryModel (  )  [virtual]

Definition at line 14 of file MercuryModel.cpp.


Member Function Documentation

void MercuryModel::AddMesh ( MercuryMesh mesh  ) 

Definition at line 25 of file MercuryModel.cpp.

unsigned int MercuryModel::NumMeshes (  )  const [inline]

Definition at line 21 of file MercuryModel.h.

MercuryMesh* MercuryModel::GetMesh ( unsigned int  i  )  const [inline]

Definition at line 22 of file MercuryModel.h.

void MercuryModel::AddMaterial ( MercuryMaterial material  ) 

Definition at line 31 of file MercuryModel.cpp.

unsigned int MercuryModel::NumMaterials (  )  const [inline]

Definition at line 26 of file MercuryModel.h.

MercuryMaterial* MercuryModel::GetMaterial ( unsigned int  i  )  [inline]

Definition at line 27 of file MercuryModel.h.

void MercuryModel::Load ( MString  path  ) 

Definition at line 49 of file MercuryModel.cpp.

bool MercuryModel::Command ( PStack ret,
const char *  command,
PStack args 
) [virtual]

Handle a message, by default, it returns false, meaning the command was not handled.

Reimplemented from MercuryCommandHandler.

Reimplemented in MercuryShape.

Definition at line 89 of file MercuryModel.cpp.

void MercuryModel::EnumerateCommands ( MVector< MString > &  toAdd  )  [virtual]

Reimplemented from MercuryCommandHandler.

Reimplemented in MercuryShape.

Definition at line 102 of file MercuryModel.cpp.

bool MercuryModel::ReadLine (  ) 

Definition at line 58 of file MercuryModel.cpp.

MercuryModel::CLASS_RTTI ( MercuryModel  ,
MercuryObject   
)

void MercuryModel::OpenFile ( const MString path  )  [protected]

Definition at line 37 of file MercuryModel.cpp.

void MercuryModel::CloseFile (  )  [inline, protected]

Definition at line 38 of file MercuryModel.h.

virtual void MercuryModel::LoadModel (  )  [protected, pure virtual]

Implemented in MercuryLoadableModel, and MercuryShape.


Member Data Documentation

MercuryFile* MercuryModel::m_file [protected]

Definition at line 42 of file MercuryModel.h.

MString MercuryModel::m_path [protected]

Definition at line 44 of file MercuryModel.h.

MString MercuryModel::m_filename [protected]

Definition at line 45 of file MercuryModel.h.

MString MercuryModel::m_line [protected]

Definition at line 46 of file MercuryModel.h.

MVector< MAutoPtr<MercuryMaterial> > MercuryModel::m_materials [protected]

Definition at line 48 of file MercuryModel.h.

MVector<MercuryMesh*> MercuryModel::m_meshes [protected]

Definition at line 49 of file MercuryModel.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo