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 ExManagerInterface

#include <ExManagerInterface.h>

Graphe d'héritage de la classe ExManagerInterface

ExManagerObject< ExCInterface > ExManager

Membres publics

void SetManagerTexture (ExManagerTexture *Texture)
void ShowRegion (void)
void HideRegion (void)
void Init (void)
void Reset (void)
ExCAction InputCommand (ExCCommand Command)
ExCAction InputAction (ExCAction Action)
void Draw (void)
bool Load (std::string FileName)
ExCAction InputCommand (int command, int mousex, int mousey)
int EnableInterface (std::string param)
int DisableInterface (std::string param)
int EnableAllInterface (void)
int DisableAllInterface (void)
int GetNumberEnableInterface (void)

Membres publics statiques

ExManagerInterface * CreateSingleton (void)

Membres privés

 ExManagerInterface (void)
 ~ExManagerInterface (void)

Attributs Privés

ExManagerTextureManagerTexture
bool m_AllDisable

Attributs Privés Statiques

bool m_flag = false
ExManagerInterface * m_instance = NULL

Documentation des contructeurs et destructeurs

ExManagerInterface void    [private]
 

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

Références m_AllDisable.

00044 {
00045         m_AllDisable=false;     
00046 }

~ExManagerInterface void    [private]
 

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

00049 {
00050 }


Documentation des méthodes

ExManagerInterface * CreateSingleton void    [static]
 

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

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

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

00029                                                            {
00030 Guard(ExManagerInterface* ExManagerInterface::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 ExManagerInterface; // Create the error log
00035         }else
00036         {
00037                 std::cout<<"Error singleton already created"<<std::endl;
00038         }
00039         return m_instance; 
00040 UnGuard
00041 }

int DisableAllInterface void   
 

Définition à la ligne 148 du fichier ExManagerInterface.cpp.

Références DisableAllInterface(), GetNumberEnableInterface(), Guard, m_AllDisable, ExManagerObject< ExCInterface >::m_ItMap, et ExManagerObject< ExCInterface >::m_Map.

Référencé par DisableAllInterface(), et InputAction().

00149 {
00150 Guard(int ExManagerInterface::DisableAllInterface(void))
00151         for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00152         {
00153                 m_ItMap->second.DisableInterface();
00154         }
00155         m_AllDisable=true;      
00156         return GetNumberEnableInterface();
00157 UnGuard
00158 }

int DisableInterface std::string    param
 

Définition à la ligne 128 du fichier ExManagerInterface.cpp.

Références DisableInterface(), ExManagerObject< ExCInterface >::GetIterator(), GetNumberEnableInterface(), et Guard.

Référencé par DisableInterface(), et InputAction().

00129 {
00130 Guard(int ExManagerInterface::DisableInterface(std::string param))
00131         GetIterator(param)->second.DisableInterface();
00132         return GetNumberEnableInterface();
00133 UnGuard
00134 }

void Draw void   
 

Redéfinie à partir de ExManagerObject< ExCInterface >.

Définition à la ligne 83 du fichier ExManagerInterface.cpp.

Références Draw(), ExManager::GetStatus(), Guard, ExManagerObject< ExCInterface >::m_ItMap, et ExManagerObject< ExCInterface >::m_Map.

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

00084 {
00085 Guard(void ExManagerInterface::Draw(void))
00086         if(!GetStatus())return;
00087         if(m_AllDisable)return;
00088         for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00089         {
00090                 m_ItMap->second.Draw();
00091         }
00092 UnGuard
00093 }

int EnableAllInterface void   
 

Définition à la ligne 136 du fichier ExManagerInterface.cpp.

Références EnableAllInterface(), GetNumberEnableInterface(), Guard, m_AllDisable, ExManagerObject< ExCInterface >::m_ItMap, et ExManagerObject< ExCInterface >::m_Map.

Référencé par EnableAllInterface(), et InputAction().

00137 {
00138 Guard(int ExManagerInterface::EnableAllInterface(void))
00139         for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00140         {
00141                 m_ItMap->second.EnableInterface();
00142         }
00143         m_AllDisable=false;     
00144         return GetNumberEnableInterface();
00145 UnGuard
00146 }

int EnableInterface std::string    param
 

Définition à la ligne 120 du fichier ExManagerInterface.cpp.

Références EnableInterface(), ExManagerObject< ExCInterface >::GetIterator(), GetNumberEnableInterface(), et Guard.

Référencé par EnableInterface(), et InputAction().

00121 {
00122 Guard(int ExManagerInterface::EnableInterface(std::string param))
00123         GetIterator(param)->second.EnableInterface();
00124         return GetNumberEnableInterface();
00125 UnGuard
00126 }

int GetNumberEnableInterface void   
 

Définition à la ligne 160 du fichier ExManagerInterface.cpp.

Références GetNumberEnableInterface(), Guard, ExManagerObject< ExCInterface >::m_ItMap, et ExManagerObject< ExCInterface >::m_Map.

Référencé par DisableAllInterface(), DisableInterface(), EnableAllInterface(), EnableInterface(), et GetNumberEnableInterface().

00161 {
00162 Guard(int ExManagerInterface::GetNumberEnableInterface(void))
00163         int ret=0;
00164         for(m_ItMap=m_Map->begin();m_ItMap!=m_Map->end();m_ItMap++)
00165         {
00166                         if(m_ItMap->second.GetInterfaceState())ret++;
00167         }
00168         return ret;
00169 UnGuard
00170 }

void HideRegion void   
 

Définition à la ligne 102 du fichier ExManagerInterface.cpp.

Références ExManagerObject< ExCInterface >::GetCurrentObject(), Guard, ExCInterface::HideRegion(), et HideRegion().

Référencé par HideRegion(), et InputAction().

00103 {
00104 Guard(void ExManagerInterface::HideRegion(void))
00105         GetCurrentObject()->HideRegion();
00106 UnGuard
00107 }

void Init void    [virtual]
 

Redéfinie à partir de ExManagerObject< ExCInterface >.

Définition à la ligne 59 du fichier ExManagerInterface.cpp.

Références Guard, ExManagerObject::Init(), Init(), et ExManager::SetStatus().

Référencé par Init(), InitManager(), et SetGlutCallBack().

00060 {
00061 Guard(void ExManagerInterface::Init(void))
00062         ExManagerObject<ExCInterface>::Init();
00063         SetStatus(true);
00064 UnGuard
00065 }

ExCAction InputAction ExCAction    Action [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 178 du fichier ExManagerInterface.cpp.

Références ExManager::Consol, DisableAllInterface(), DisableInterface(), EnableAllInterface(), EnableInterface(), Guard, HideRegion(), InputAction(), ExManagerObject< ExCInterface >::List(), Load(), ExCAction::m_Action, ExCAction::m_NextAction, ExCAction::m_Param, et ShowRegion().

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

00179 {
00180 Guard(ExCAction ExManagerInterface::InputAction(ExCAction Action))
00181         switch(Action.m_Action)
00182         {
00183         case ENABLE_INTERFACE:EnableInterface(Action.m_Param);break;
00184         case DISABLE_INTERFACE:DisableInterface(Action.m_Param);break;
00185         case ENABLE_ALL_INTERFACE:EnableAllInterface();break;
00186         case DISABLE_ALL_INTERFACE:DisableAllInterface();break;
00187         case LIST_INTERFACE:List();     break;
00188         case ADD_INTERFACE:Load(Action.m_Param);break;
00189         case SHOW_INTERFACE_REGION:ShowRegion();break;
00190         case HIDE_INTERFACE_REGION:HideRegion();break;
00191         default:
00192                 *Consol<<"Can not file action in INTERFACE_ACTION_MAP"<<std::endl;
00193                 break;
00194         }
00195         if(Action.m_NextAction){return *Action.m_NextAction;}
00196         else{return NOTHING;}
00197 UnGuard
00198 }

ExCAction InputCommand int    command,
int    mousex,
int    mousey
 

Définition à la ligne 109 du fichier ExManagerInterface.cpp.

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

00110 {
00111 Guard(int ExManagerInterface::InputCommand(int command,int mousex,int mousey))
00112 /*      if(GetCurrentObject()->GetInterfaceState())
00113         {
00114                 return GetCurrentObject()->InputCommand(command,mousex,mousey);
00115         }*/
00116         return NOTHING;
00117 UnGuard
00118 }

ExCAction InputCommand ExCCommand    Command [virtual]
 

Redéfinie à partir de ExManager.

Définition à la ligne 172 du fichier ExManagerInterface.cpp.

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

Référencé par InputCommand().

00173 {
00174 Guard(ExCAction ExManagerInterface::InputCommand(ExCCommand Command))
00175         return NOTHING;
00176 UnGuard
00177 }

bool Load std::string    FileName
 

Redéfinie à partir de ExManagerObject< ExCInterface >.

Définition à la ligne 67 du fichier ExManagerInterface.cpp.

Références ExManagerObject< ExCInterface >::Add(), ExManager::Consol, ExCInterface::Consol, ExCObject::GetName(), Guard, Load(), ExCInterface::LoadFile(), ManagerTexture, ExManagerObject< ExCInterface >::SetCurrentObject(), et ExCInterface::SetManagerTexture().

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

00068 {
00069 Guard(bool ExManagerInterface::Load(std::string FileName))
00070         ExCInterface Inter;
00071         Inter.SetManagerTexture(ManagerTexture);
00072         Inter.Consol=Consol;
00073         if(Inter.LoadFile(FileName))
00074         {
00075                 SetCurrentObject(Inter.GetName());
00076                 Add(Inter);
00077                 return true;
00078         }
00079         return false;
00080 UnGuard
00081 }

void Reset void    [virtual]
 

Redéfinie à partir de ExManagerObject< ExCInterface >.

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

Références Guard, ExManagerObject::Reset(), et Reset().

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

00053 {
00054 Guard(void ExManagerInterface::Reset(void))
00055         ExManagerObject<ExCInterface>::Reset();
00056 UnGuard
00057 }

void SetManagerTexture ExManagerTexture   Texture [inline]
 

Définition à la ligne 84 du fichier ExManagerInterface.h.

Références ManagerTexture.

Référencé par SetManagerLink().

00085 {ManagerTexture = Texture;}

void ShowRegion void   
 

Définition à la ligne 95 du fichier ExManagerInterface.cpp.

Références ExManagerObject< ExCInterface >::GetCurrentObject(), Guard, ExCInterface::ShowRegion(), et ShowRegion().

Référencé par InputAction(), et ShowRegion().

00096 {
00097 Guard(void ExManagerInterface::ShowRegion(void))
00098         GetCurrentObject()->ShowRegion();
00099 UnGuard
00100 }


Documentation des données imbriquées

bool m_AllDisable [private]
 

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

Référencé par DisableAllInterface(), EnableAllInterface(), et ExManagerInterface().

bool m_flag = false [static, private]
 

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

Référencé par CreateSingleton().

ExManagerInterface * m_instance = NULL [static, private]
 

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

Référencé par CreateSingleton().

ExManagerTexture* ManagerTexture [private]
 

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

Référencé par Load().


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