#include <MercuryModel.h>
Inheritance diagram for MercuryModel:
Public Member Functions | |
MercuryModel () | |
virtual | ~MercuryModel () |
void | AddMesh (MercuryMesh *mesh) |
unsigned int | NumMeshes () const |
MercuryMesh * | GetMesh (unsigned int i) const |
void | AddMaterial (MercuryMaterial *material) |
unsigned int | NumMaterials () const |
MercuryMaterial * | GetMaterial (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 | |
MercuryFile * | m_file |
MString | m_path |
MString | m_filename |
MString | m_line |
MVector< MAutoPtr< MercuryMaterial > > | m_materials |
MVector< MercuryMesh * > | m_meshes |
Definition at line 14 of file MercuryModel.h.
MercuryModel::MercuryModel | ( | ) |
Definition at line 7 of file MercuryModel.cpp.
MercuryModel::~MercuryModel | ( | ) | [virtual] |
Definition at line 14 of file MercuryModel.cpp.
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.
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.
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.
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.