Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

Référence de la classe ExManagerMesh

#include <ExManagerMesh.h>

Graphe d'héritage de la classe ExManagerMesh

ExManagerObject< ExCMesh * > ExManager

Membres publics

void Reset (void)
void Init (void)
void Draw (void)
ExNihilo::ExId Load (std::string FileName)
ExNihilo::ExId Load (std::string FileName, std::string ObjectName)
ExCAction InputCommand (ExCCommand Command)
ExCAction InputAction (ExCAction Action)
void SetManagerTexture (ExManagerTexture *Texture)
void SetManagerModel (ExManagerModel *Model)
ExCMeshGetObject (ExNihilo::ExId id)
void SetManagerId (ExManagerId *Id)
void Init (std::string FileName)
void Reload (void)
void List (void)
bool Add (ExCMesh *object)
bool Add (std::string FileName)
bool Remove (ExNihilo::ExId id)
bool Remove (std::string Name)
bool RemoveCurrentObject (void)
ExCMesh ** GetObject (std::string Name)
ExCMesh ** GetCurrentObject (void)
ExCMesh ** GetFirstObject (void)
ExCMesh ** GetLastObject (void)
ExNihilo::ExId GetFirstObjectId (void)
ExNihilo::ExId GetLasstObjectId (void)
bool SetCurrentObject (ExNihilo::ExId id)
bool SetCurrentObject (std::string Name)
ExNihilo::ExId NextObject (void)
ExNihilo::ExId PreviousObject (void)
unsigned int GetNumberObject (void)
void SetFlux (std::ostrstream *consol, ExCFluxAction *action)
bool GetStatus (void)
void SetStatus (bool status)
void SetAskForCommand (bool status)
void SetAskForExclusifCommand (bool status)
bool AskForCommand (void)
bool AskForExclusifCommand (void)

Membres publics statiques

ExManagerMeshCreateSingleton (void)

Attributs Publics

std::ostrstream * Consol
ExCFluxActionFluxAction

Attributs Protégés

std::map< ExNihilo::ExId,
ExCMesh *, std::less< ExNihilo::ExId > > * 
m_Map
std::map< ExNihilo::ExId,
ExCMesh *, std::less< ExNihilo::ExId
> >::iterator 
m_ItMap
ExManagerIdManagerId
ExNihilo::ExId m_CurrentObjectId
bool m_Status
bool m_AskForCommand
bool m_Exclusif

Membres privés

 ExManagerMesh (void)
 ~ExManagerMesh (void)
MeshType GetMeshType (std::string FileName)

Attributs Privés

ExManagerTextureManagerTexture
ExManagerModelManagerModel

Attributs Privés Statiques

bool m_flag = false
ExManagerMeshm_instance = NULL

Documentation des contructeurs et destructeurs

ExManagerMesh::ExManagerMesh void   )  [private]
 

Définition à la ligne 43 du fichier ExManagerMesh.cpp.

00044 {
00045 }

ExManagerMesh::~ExManagerMesh void   )  [private]
 

Définition à la ligne 47 du fichier ExManagerMesh.cpp.

00048 {
00049 }


Documentation des méthodes

bool ExManagerObject< ExCMesh * >::Add std::string  FileName  )  [inherited]
 

bool ExManagerObject< ExCMesh * >::Add ExCMesh *   object  )  [inherited]
 

Référencé par Load().

bool ExManager::AskForCommand void   )  [inline, inherited]
 

Définition à la ligne 89 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerCommand::InputCommand().

00089 {return m_AskForCommand;}

bool ExManager::AskForExclusifCommand void   )  [inline, inherited]
 

Définition à la ligne 90 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerCommand::InputCommand().

00090 {return m_Exclusif;}

ExManagerMesh * ExManagerMesh::CreateSingleton void   )  [static]
 

Définition à la ligne 29 du fichier ExManagerMesh.cpp.

Références CreateSingleton(), Guard, m_flag, m_instance, et UnGuard.

Référencé par CreateManager(), et CreateSingleton().

00029                                                  {
00030 Guard(ExManagerMesh* ExManagerMesh::CreateSingleton(void))
00031         if(!m_flag)
00032         {
00033                 m_flag = true; // We are creating the error log now, so set flag to true
00034                 m_instance = new ExManagerMesh; // Create the error log
00035         }else
00036         {
00037                 std::cout<<"Error singleton already created"<<std::endl;
00038         }
00039         return m_instance; 
00040 UnGuard
00041 }

void ExManagerMesh::Draw void   )  [virtual]
 

Redéfinie à partir de ExManagerObject< ExCMesh * >.

Définition à la ligne 64 du fichier ExManagerMesh.cpp.

Références ExManagerObject< ExCMesh * >::m_ItMap, et ExManagerObject< ExCMesh * >::m_Map.

Référencé par ExManagerPVS::Draw().

00065 {
00066         //Draw here only if PVS is not active
00067         for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00068         {
00069                 m_ItMap->second->Draw();
00070         }
00071 }

ExCMesh * * ExManagerObject< ExCMesh * >::GetCurrentObject void   )  [inherited]
 

ExCMesh * * ExManagerObject< ExCMesh * >::GetFirstObject void   )  [inherited]
 

ExNihilo::ExId ExManagerObject< ExCMesh * >::GetFirstObjectId void   )  [inherited]
 

ExNihilo::ExId ExManagerObject< ExCMesh * >::GetLasstObjectId void   )  [inherited]
 

ExCMesh * * ExManagerObject< ExCMesh * >::GetLastObject void   )  [inherited]
 

MeshType ExManagerMesh::GetMeshType std::string  FileName  )  [private]
 

Définition à la ligne 74 du fichier ExManagerMesh.cpp.

Références ExNihilo::ExtracStringValueFromFile(), GetMeshType(), Guard, MESH_3DS, MESH_BILBOARDED, MESH_FIRE_EFFECT, MESH_LOD_3DS, MESH_SAURON_EFFECT, MESH_SMOG_EFFECT, MESH_SUMMON_CYLENDER_EFFECT, MESH_UNKNOWN, MESH_WATER_DISQUE_EFFECT, MESH_WATER_EFFECT, MeshType, et UnGuard.

Référencé par GetMeshType(), et Load().

00075 {
00076 Guard(MeshType ExManagerMesh::GetMeshType(std::string FileName))
00077         std::string buffstring;
00078         buffstring=ExNihilo::ExtracStringValueFromFile("../Data/Mesh/"+FileName,"<Type>","<#Type>");
00079         if(strcmpi(buffstring.data(),"ExCMeshFireEffect")==0)return MESH_FIRE_EFFECT;
00080         if(strcmpi(buffstring.data(),"ExCMeshWaterEffect")==0)return MESH_WATER_EFFECT;
00081         if(strcmpi(buffstring.data(),"ExCMeshSummonCylenderEffect")==0)return MESH_SUMMON_CYLENDER_EFFECT;
00082         if(strcmpi(buffstring.data(),"ExCMeshSmogEffect")==0)return MESH_SMOG_EFFECT;
00083         if(strcmpi(buffstring.data(),"ExCMeshWaterDisqueEffect")==0)return MESH_WATER_DISQUE_EFFECT;
00084         if(strcmpi(buffstring.data(),"ExCMeshLOD3ds")==0)return MESH_LOD_3DS;
00085         if(strcmpi(buffstring.data(),"ExCMeshSauronEffect")==0)return MESH_SAURON_EFFECT;
00086         if(strcmpi(buffstring.data(),"ExCMesh3ds")==0)return MESH_3DS;
00087         if(strcmpi(buffstring.data(),"ExCMeshBilboarded")==0)return MESH_BILBOARDED;
00088         return MESH_UNKNOWN;
00089 UnGuard
00090 }

unsigned int ExManagerObject< ExCMesh * >::GetNumberObject void   )  [inline, inherited]
 

Définition à la ligne 124 du fichier ExManagerObject.h.

00124 {return m_Map->size();}

ExCMesh * * ExManagerObject< ExCMesh * >::GetObject std::string  Name  )  [inherited]
 

ExCMesh * ExManagerMesh::GetObject ExNihilo::ExId  id  ) 
 

Redéfinie à partir de ExManagerObject< ExCMesh * >.

Définition à la ligne 163 du fichier ExManagerMesh.cpp.

Références ExNihilo::ExId, GetObject(), Guard, ExManagerObject< ExCMesh * >::m_ItMap, ExManagerObject< ExCMesh * >::m_Map, et UnGuard.

Référencé par ExCEntity::Draw(), GetObject(), ExCGroupEntity::LoadFile(), et ExCEntity::LoadFile().

00164 {
00165         Guard(ExCMesh *ExManagerMesh::GetObject(ExNihilo::ExId id))
00166                 for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00167                 {
00168                         if(m_ItMap->second->GetId()==id)return m_ItMap->second;
00169                 }
00170                 return NULL;
00171                 UnGuard
00172 }

bool ExManager::GetStatus void   )  [inline, inherited]
 

Définition à la ligne 85 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerInterface::Draw(), ExManagerConsole::Draw(), et ExManagerOutput::DrawScene().

00085 {return m_Status;}

void ExManagerObject< ExCMesh * >::Init std::string  FileName  )  [inherited]
 

void ExManagerMesh::Init void   )  [virtual]
 

Redéfinie à partir de ExManagerObject< ExCMesh * >.

Définition à la ligne 56 du fichier ExManagerMesh.cpp.

Références Guard, ExManagerObject< TypeA >::Init(), Init(), et UnGuard.

Référencé par Init(), et PreInitManager().

00057 {
00058 Guard(void ExManagerMesh::Init(void))
00059         ExManagerObject<ExCMesh *>::Init();
00060 
00061 UnGuard
00062 }

ExCAction ExManagerMesh::InputAction ExCAction  Action  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 149 du fichier ExManagerMesh.cpp.

Références ExManager::Consol, Guard, InputAction(), ExCAction::m_Action, ExCAction::m_NextAction, NOTHING, et UnGuard.

Référencé par InputAction(), et ExManagerCommand::ProcesExCAction().

00150 {
00151 Guard(ExCAction ExManagerMesh::InputAction(ExCAction Action))
00152         switch(Action.m_Action)
00153         {
00154                 default:
00155                         *Consol<<"Can not file action in MESH_ACTION_MAP"<<std::endl;
00156                         break;
00157         }
00158         if(Action.m_NextAction){return *Action.m_NextAction;}
00159         else{return NOTHING;}
00160 UnGuard
00161 }

ExCAction ExManagerMesh::InputCommand ExCCommand  Command  )  [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 142 du fichier ExManagerMesh.cpp.

Références Guard, InputCommand(), NOTHING, et UnGuard.

Référencé par InputCommand().

00143 {
00144 Guard(ExCAction ExManagerMesh::InputCommand(ExCCommand Command))
00145                 return NOTHING;
00146 UnGuard
00147 }

void ExManagerObject< ExCMesh * >::List void   )  [inherited]
 

ExNihilo::ExId ExManagerMesh::Load std::string  FileName,
std::string  ObjectName
 

Définition à la ligne 135 du fichier ExManagerMesh.cpp.

Références ExNihilo::ExId, Guard, Load(), et UnGuard.

00136 {
00137 Guard(ExNihilo::ExId ExManagerMesh::Load(std::string FileName,std::string ObjectName))
00138 
00139 UnGuard
00140 }

ExNihilo::ExId ExManagerMesh::Load std::string  FileName  ) 
 

Redéfinie à partir de ExManagerObject< ExCMesh * >.

Définition à la ligne 92 du fichier ExManagerMesh.cpp.

Références ExManagerObject< ExCMesh * >::Add(), ExNihilo::ExId, ExCObject::GetId(), GetMeshType(), Guard, ExCMesh::Load(), ExManagerObject< ExCMesh * >::m_ItMap, ExManagerObject< ExCMesh * >::m_Map, ExManagerObject< ExCMesh * >::ManagerId, ManagerModel, ManagerTexture, MESH_3DS, MESH_BILBOARDED, MESH_FIRE_EFFECT, MESH_LOD_3DS, MESH_SAURON_EFFECT, MESH_SMOG_EFFECT, MESH_SUMMON_CYLENDER_EFFECT, MESH_WATER_DISQUE_EFFECT, MESH_WATER_EFFECT, ExCMesh::SetManagerTexture(), ExCObject::SetName(), et UnGuard.

Référencé par Load(), ExCGroupEntity::LoadFile(), et ExCEntity::LoadFile().

00093 {
00094 Guard(ExNihilo::ExManagerMesh::Load(std::string FileName))
00095         //std::cout<<"Load file:"<<FileName<<std::endl;
00096         //Check if model already loaded
00097         try
00098         {
00099                 for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00100                 {
00101                         if(strcmp(m_ItMap->second->GetName().data(),FileName.data())==0)
00102                         {
00103                                 return m_ItMap->second->GetId();
00104                         }
00105                 }  
00106         }catch(...){}
00107         ExCMesh *Mesh;
00108         switch(GetMeshType(FileName))
00109         {
00110         case MESH_FIRE_EFFECT:Mesh = new ExCMeshFireEffect;break;
00111         case MESH_WATER_EFFECT:Mesh = new ExCMeshWaterEffect;break;
00112         case MESH_SUMMON_CYLENDER_EFFECT:Mesh = new ExCMeshSummonCylenderEffect;break;
00113         case MESH_SMOG_EFFECT:Mesh = new ExCMeshSmogEffect;break;
00114         case MESH_WATER_DISQUE_EFFECT:Mesh = new ExCMeshWaterDisqueEffect;break;
00115         case MESH_SAURON_EFFECT:Mesh = new ExCMeshSauronEffect;break;
00116         case MESH_LOD_3DS:Mesh = new ExCMeshLOD3ds;break;
00117         case MESH_3DS:
00118                 Mesh = new ExCMesh3ds;
00119                 ((ExCMesh3ds *)Mesh)->SetManagerModel(ManagerModel);
00120                 ((ExCMesh3ds *)Mesh)->SetManagerId(ManagerId);
00121                 break;
00122         case MESH_BILBOARDED:
00123                 Mesh = new ExCMeshBilboarded;
00124                 break;
00125         }
00126         
00127         Mesh->SetName(FileName);
00128         Mesh->SetManagerTexture(ManagerTexture);
00129         Mesh->Load(FileName);
00130         Add(Mesh);
00131         return Mesh->GetId();
00132 UnGuard
00133 }

ExNihilo::ExId ExManagerObject< ExCMesh * >::NextObject void   )  [inherited]
 

ExNihilo::ExId ExManagerObject< ExCMesh * >::PreviousObject void   )  [inherited]
 

void ExManagerObject< ExCMesh * >::Reload void   )  [virtual, inherited]
 

Redéfinie à partir de ExManager.

Référencé par ExManagerCommand::ProcesExCAction().

bool ExManagerObject< ExCMesh * >::Remove std::string  Name  )  [inherited]
 

bool ExManagerObject< ExCMesh * >::Remove ExNihilo::ExId  id  )  [inherited]
 

bool ExManagerObject< ExCMesh * >::RemoveCurrentObject void   )  [inherited]
 

void ExManagerMesh::Reset void   )  [virtual]
 

Redéfinie à partir de ExManagerObject< ExCMesh * >.

Définition à la ligne 51 du fichier ExManagerMesh.cpp.

Références ExManagerObject< TypeA >::Reset().

Référencé par ExManagerCommand::ProcesExCAction().

00052 {
00053         ExManagerObject<ExCMesh *>::Reset();
00054 }

void ExManager::SetAskForCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 87 du fichier ExManager.h.

Références ExManager::m_AskForCommand.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), ExManagerLoad::LoadSetOfFile(), et ExManagerNetwork::Say().

00087 {m_AskForCommand=status;} 

void ExManager::SetAskForExclusifCommand bool  status  )  [inline, inherited]
 

Définition à la ligne 88 du fichier ExManager.h.

Références ExManager::m_Exclusif.

Référencé par ExManagerConsole::ExManagerConsole(), ExManagerModel::ExManagerModel(), ExManagerObjectWindow::Init(), ExManagerNetwork::Init(), ExManagerConsole::InputAction(), ExManagerNetwork::InputCommand(), et ExManagerNetwork::Say().

00088 {m_Exclusif=status;}

bool ExManagerObject< ExCMesh * >::SetCurrentObject std::string  Name  )  [inherited]
 

bool ExManagerObject< ExCMesh * >::SetCurrentObject ExNihilo::ExId  id  )  [inherited]
 

void ExManager::SetFlux std::ostrstream *  consol,
ExCFluxAction action
[inherited]
 

Définition à la ligne 35 du fichier ExManager.cpp.

Références ExManager::Consol, et ExManager::FluxAction.

Référencé par SetManagerLink().

00036 {
00037         Consol=consol;
00038         FluxAction=action;
00039 }

void ExManagerObject< ExCMesh * >::SetManagerId ExManagerId Id  )  [inline, inherited]
 

Définition à la ligne 94 du fichier ExManagerObject.h.

Référencé par SetManagerLink().

00094 {ManagerId      = Id;}

void ExManagerMesh::SetManagerModel ExManagerModel Model  )  [inline]
 

Définition à la ligne 123 du fichier ExManagerMesh.h.

Références ManagerModel.

Référencé par SetManagerLink().

00123 {ManagerModel = Model;}

void ExManagerMesh::SetManagerTexture ExManagerTexture Texture  )  [inline]
 

Définition à la ligne 122 du fichier ExManagerMesh.h.

Références ManagerTexture.

Référencé par SetManagerLink().

00122 {ManagerTexture = Texture;}

void ExManager::SetStatus bool  status  )  [inline, inherited]
 

Définition à la ligne 86 du fichier ExManager.h.

Références ExManager::m_Status.

Référencé par ExManagerConsole::Draw(), ExManagerConsole::ExManagerConsole(), ExManagerObjectWindow::Init(), ExManagerInterface::Init(), ExManagerConsole::InputAction(), ExManagerLoad::LoadSetOfFile(), et ExManagerConsole::SetConsoleState().

00086 {m_Status=status;}


Documentation des données imbriquées

std::ostrstream* ExManager::Consol [inherited]
 

Définition à la ligne 73 du fichier ExManager.h.

Référencé par ExManagerObject< TypeA >::Add(), ExManagerConsole::AddStringAction(), ExManagerConsole::ApplyBuffCommand(), ExManagerInputGLUT::CheckInput(), ExManagerSound::DisplayAviableInput(), ExManagerInputGLUT::DisplayAviableInput(), ExManagerLoad::DisplayFileType(), ExManagerLoad::GetFileType(), ExManagerVertexArrays::Init(), ExManagerTexture::Init(), ExManagerSound::Init(), ExManagerFog::Init(), ExManagerSound::InputAction(), ExManagerPVS::InputAction(), ExManagerParticuleSystem::InputAction(), ExManagerModel::InputAction(), InputAction(), ExManagerMap::InputAction(), ExManagerLoad::InputAction(), ExManagerInterface::InputAction(), ExManagerFog::InputAction(), ExManagerEntity::InputAction(), ExManagerConsole::InputAction(), ExManagerCommand::InputAction(), ExManagerCamera::InputAction(), ExManagerAnimation::InputAction(), ExManagerObject< TypeA >::List(), ExManagerModel::List(), ExManagerId::List(), ExManagerConsole::ListConsoleCommand(), ExManagerTexture::Load(), ExManagerParticuleSystem::Load(), ExManagerModel::Load(), ExManagerInterface::Load(), ExManagerTexture::LoadCubeMap(), ExManagerLoad::LoadSetOfFile(), ExManagerSound::LoadSound(), ExManagerSound::PauseSound(), ExManagerSound::PlaySound(), ExManagerCommand::ProcesExCAction(), ExManagerId::RecordObject(), ExManager::SetFlux(), ExManagerSound::SetRepeatSound(), ExManagerSound::StopSound(), ExManagerConsole::UpdateConsolBuffer(), et ExManagerConsole::Write().

ExCFluxAction* ExManager::FluxAction [inherited]
 

Définition à la ligne 74 du fichier ExManager.h.

Référencé par ExManagerWindow::Apply(), ExManagerCommand::ApplyAction(), ExManagerCommand::LoadExecFile(), ExManagerId::RecordObject(), ExManager::SetFlux(), et ExManagerSpecialEffect::Specialeffect().

bool ExManager::m_AskForCommand [protected, inherited]
 

Définition à la ligne 70 du fichier ExManager.h.

Référencé par ExManager::AskForCommand(), ExManagerConsole::ExManagerConsole(), et ExManager::SetAskForCommand().

ExNihilo::ExId ExManagerObject< ExCMesh * >::m_CurrentObjectId [protected, inherited]
 

Définition à la ligne 79 du fichier ExManagerObject.h.

bool ExManager::m_Exclusif [protected, inherited]
 

Définition à la ligne 71 du fichier ExManager.h.

Référencé par ExManager::AskForExclusifCommand(), et ExManager::SetAskForExclusifCommand().

bool ExManagerMesh::m_flag = false [static, private]
 

Définition à la ligne 26 du fichier ExManagerMesh.cpp.

Référencé par CreateSingleton().

ExManagerMesh * ExManagerMesh::m_instance = NULL [static, private]
 

Définition à la ligne 27 du fichier ExManagerMesh.cpp.

Référencé par CreateSingleton().

std::map< ExNihilo::ExId , ExCMesh * , std::less <ExNihilo::ExId > >::iterator ExManagerObject< ExCMesh * >::m_ItMap [protected, inherited]
 

Définition à la ligne 76 du fichier ExManagerObject.h.

Référencé par Draw(), GetObject(), et Load().

std::map< ExNihilo::ExId , ExCMesh * , std::less <ExNihilo::ExId > >* ExManagerObject< ExCMesh * >::m_Map [protected, inherited]
 

Définition à la ligne 75 du fichier ExManagerObject.h.

Référencé par Draw(), GetObject(), et Load().

bool ExManager::m_Status [protected, inherited]
 

Définition à la ligne 69 du fichier ExManager.h.

Référencé par ExManager::GetStatus(), et ExManager::SetStatus().

ExManagerId* ExManagerObject< ExCMesh * >::ManagerId [protected, inherited]
 

Définition à la ligne 78 du fichier ExManagerObject.h.

Référencé par Load().

ExManagerModel* ExManagerMesh::ManagerModel [private]
 

Définition à la ligne 99 du fichier ExManagerMesh.h.

Référencé par Load(), et SetManagerModel().

ExManagerTexture* ExManagerMesh::ManagerTexture [private]
 

Définition à la ligne 98 du fichier ExManagerMesh.h.

Référencé par Load(), et SetManagerTexture().


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Oct 28 12:44:03 2003 pour ExNihilo par doxygen 1.3.4