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 ExManagerMap

#include <ExManagerMap.h>

Graphe d'héritage de la classe ExManagerMap

ExManager

Membres publics

void Init (void)
void Reset (void)
ExCAction InputCommand (ExCCommand Command)
ExCAction InputAction (ExCAction Action)
void SetManagerId (ExManagerId *Id)
void SetManagerTexture (ExManagerTexture *Texture)
void LoadMap (const char *FileName)
void Draw (void)
void ShowSkybox (void)
void HideSkybox (void)
void ShowMesh (void)
void HideMesh (void)
void EnableOctree (void)
void DisableOctree (void)
void ShowOctreeSubdivision (void)
void HideOctreeSubdivision (void)

Membres publics statiques

ExManagerMap * CreateSingleton (void)

Membres privés

 ExManagerMap (void)
 ~ExManagerMap (void)

Attributs Privés

ExManagerIdManagerId
ExManagerTextureManagerTexture
ExCMapMap
bool MapLoaded

Attributs Privés Statiques

bool m_flag = false
ExManagerMap * m_instance = NULL

Documentation des contructeurs et destructeurs

ExManagerMap void    [private]
 

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

Références MapLoaded.

00044 {
00045         MapLoaded=false;
00046 }

~ExManagerMap void    [private]
 

Définition à la ligne 48 du fichier ExManagerMap.cpp.

00049 {
00050 }


Documentation des méthodes

ExManagerMap * CreateSingleton void    [static]
 

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

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

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

00029                                                {
00030 Guard(ExManagerMap* ExManagerMap::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 ExManagerMap; // 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 DisableOctree void    [inline]
 

Définition à la ligne 104 du fichier ExManagerMap.h.

Références ExCMap::EnableOctree().

Référencé par InputAction().

00104 {Map->EnableOctree();}

void Draw void   
 

Définition à la ligne 68 du fichier ExManagerMap.cpp.

Références ExCMap::Draw(), Draw(), Guard, et Map.

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

00069 {
00070 Guard(void ExManagerMap::Draw(void))
00071         if(MapLoaded)
00072         {
00073                 Map->Draw();
00074         }
00075 UnGuard
00076 }

void EnableOctree void    [inline]
 

Définition à la ligne 103 du fichier ExManagerMap.h.

Références ExCMap::HideMesh().

Référencé par InputAction().

00103 {Map->HideMesh();}

void HideMesh void    [inline]
 

Définition à la ligne 102 du fichier ExManagerMap.h.

Références ExCMap::ShowMesh().

Référencé par InputAction().

00102 {Map->ShowMesh();}

void HideOctreeSubdivision void    [inline]
 

Définition à la ligne 106 du fichier ExManagerMap.h.

Références ExCMap::ShowOctreeSubdivision().

Référencé par InputAction().

void HideSkybox void    [inline]
 

Définition à la ligne 100 du fichier ExManagerMap.h.

Références ExCMap::ShowSkybox().

Référencé par InputAction().

00100 {Map->ShowSkybox();}

void Init void    [inline, virtual]
 

Redéfinie à partir de ExManager.

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

00089 {};

ExCAction InputAction ExCAction    Action [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 85 du fichier ExManagerMap.cpp.

Références ExManager::Consol, DisableOctree(), EnableOctree(), Guard, HideMesh(), HideOctreeSubdivision(), HideSkybox(), InputAction(), ExCAction::m_Action, ExCAction::m_NextAction, ShowMesh(), ShowOctreeSubdivision(), et ShowSkybox().

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

00086 {
00087 Guard(ExCAction ExManagerMap::InputAction(ExCAction Action))
00088         switch(Action.m_Action)
00089         {
00090         case SHOW_MAP_SKY_BOX:ShowSkybox();break;
00091         case HIDE_MAP_SKY_BOX:HideSkybox();break;
00092         case SHOW_MAP_MESH:ShowMesh();break;
00093         case HIDE_MAP_MESH:HideMesh();break;
00094         case ENABLE_MAP_OCTREE:EnableOctree();break;
00095         case DISABLE_MAP_OCTREE:DisableOctree();break;
00096         case SHOW_MAP_OCTREE_SUBDIVISON:ShowOctreeSubdivision();break;
00097         case HIDE_MAP_OCTREE_SUBDIVISON:HideOctreeSubdivision();break;
00098 
00099         default:
00100                 *Consol<<"Can not file action in MAP_ACTION_MAP"<<std::endl;
00101                 break;
00102         }       
00103         if(Action.m_NextAction){return *Action.m_NextAction;}
00104         else{return NOTHING;}
00105 UnGuard
00106 }

ExCAction InputCommand ExCCommand    Command [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 78 du fichier ExManagerMap.cpp.

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

Référencé par InputCommand().

00079 {
00080 Guard(ExCAction ExManagerMap::InputCommand(ExCCommand Command))
00081         return NOTHING;
00082 UnGuard
00083 }

void LoadMap const char *    FileName
 

Définition à la ligne 57 du fichier ExManagerMap.cpp.

Références ExManager::Consol, ExCMap::Consol, Guard, ExCMap::LoadMap(), LoadMap(), ManagerTexture, Map, MapLoaded, et ExCMap::SetManagerTexture().

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

00058 {
00059 Guard(ExManagerMap::LoadMap(const char * ))
00060         Map=new ExCMap();
00061         Map->SetManagerTexture(ManagerTexture);
00062         Map->Consol=Consol;
00063         Map->LoadMap(FileName);
00064         MapLoaded=true;
00065 UnGuard
00066 }

void Reset void    [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 52 du fichier ExManagerMap.cpp.

Références MapLoaded.

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

00053 {
00054         MapLoaded=false;
00055 }

void SetManagerId ExManagerId   Id [inline]
 

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

Référencé par SetManagerLink().

00095 {ManagerId      = Id;}

void SetManagerTexture ExManagerTexture   Texture [inline]
 

Définition à la ligne 95 du fichier ExManagerMap.h.

Références ManagerId.

Référencé par SetManagerLink().

00095 {ManagerId      = Id;}

void ShowMesh void    [inline]
 

Définition à la ligne 101 du fichier ExManagerMap.h.

Références ExCMap::HideSkybox().

Référencé par InputAction().

00101 {Map->HideSkybox();}

void ShowOctreeSubdivision void    [inline]
 

Définition à la ligne 105 du fichier ExManagerMap.h.

Références ExCMap::DisableOctree().

Référencé par InputAction().

00105 {Map->DisableOctree();}

void ShowSkybox void    [inline]
 

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

Référencé par InputAction().

00100 {Map->ShowSkybox();}


Documentation des données imbriquées

bool m_flag = false [static, private]
 

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

Référencé par CreateSingleton().

ExManagerMap * m_instance = NULL [static, private]
 

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

Référencé par CreateSingleton().

ExManagerId* ManagerId [private]
 

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

ExManagerTexture* ManagerTexture [private]
 

Définition à la ligne 72 du fichier ExManagerMap.h.

Référencé par LoadMap().

ExCMap* Map [private]
 

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

Référencé par Draw(), et LoadMap().

bool MapLoaded [private]
 

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

Référencé par ExManagerMap(), LoadMap(), et Reset().


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Dec 10 18:18:44 2002 pour ExNihilo par doxygen1.3-rc1