#include <ExManagerInterface.h>
Inheritance diagram for ExManagerInterface:
Public Methods | |
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) |
Static Public Methods | |
ExManagerInterface * | CreateSingleton (void) |
Private Methods | |
ExManagerInterface (void) | |
~ExManagerInterface (void) | |
Private Attributes | |
ExManagerTexture * | ManagerTexture |
bool | m_AllDisable |
Static Private Attributes | |
bool | m_flag = false |
ExManagerInterface * | m_instance = NULL |
|
Definition at line 43 of file ExManagerInterface.cpp. References m_AllDisable.
00044 { 00045 m_AllDisable=false; 00046 } |
|
Definition at line 48 of file ExManagerInterface.cpp.
00049 { 00050 } |
|
Definition at line 29 of file ExManagerInterface.cpp. References CreateSingleton(), Guard, m_flag, and m_instance. Referenced by CreateSingleton(), and 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 } |
|
Definition at line 148 of file ExManagerInterface.cpp. References DisableAllInterface(), GetNumberEnableInterface(), Guard, m_AllDisable, ExManagerObject< ExCInterface >::m_ItMap, and ExManagerObject< ExCInterface >::m_Map. Referenced by DisableAllInterface(), and 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 } |
|
Definition at line 128 of file ExManagerInterface.cpp. References DisableInterface(), ExManagerObject< ExCInterface >::GetIterator(), GetNumberEnableInterface(), and Guard. Referenced by DisableInterface(), and InputAction().
00129 { 00130 Guard(int ExManagerInterface::DisableInterface(std::string param)) 00131 GetIterator(param)->second.DisableInterface(); 00132 return GetNumberEnableInterface(); 00133 UnGuard 00134 } |
|
Reimplemented from ExManagerObject< ExCInterface >. Definition at line 83 of file ExManagerInterface.cpp. References Draw(), ExManager::GetStatus(), Guard, ExManagerObject< ExCInterface >::m_ItMap, and ExManagerObject< ExCInterface >::m_Map. Referenced by Draw(), and ExManagerOutput::DrawScene().
|
|
Definition at line 136 of file ExManagerInterface.cpp. References EnableAllInterface(), GetNumberEnableInterface(), Guard, m_AllDisable, ExManagerObject< ExCInterface >::m_ItMap, and ExManagerObject< ExCInterface >::m_Map. Referenced by EnableAllInterface(), and 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 } |
|
Definition at line 120 of file ExManagerInterface.cpp. References EnableInterface(), ExManagerObject< ExCInterface >::GetIterator(), GetNumberEnableInterface(), and Guard. Referenced by EnableInterface(), and InputAction().
00121 { 00122 Guard(int ExManagerInterface::EnableInterface(std::string param)) 00123 GetIterator(param)->second.EnableInterface(); 00124 return GetNumberEnableInterface(); 00125 UnGuard 00126 } |
|
Definition at line 160 of file ExManagerInterface.cpp. References GetNumberEnableInterface(), Guard, ExManagerObject< ExCInterface >::m_ItMap, and ExManagerObject< ExCInterface >::m_Map. Referenced by DisableAllInterface(), DisableInterface(), EnableAllInterface(), EnableInterface(), and GetNumberEnableInterface().
|
|
Definition at line 102 of file ExManagerInterface.cpp. References ExManagerObject< ExCInterface >::GetCurrentObject(), Guard, ExCInterface::HideRegion(), and HideRegion(). Referenced by HideRegion(), and InputAction().
00103 { 00104 Guard(void ExManagerInterface::HideRegion(void)) 00105 GetCurrentObject()->HideRegion(); 00106 UnGuard 00107 } |
|
Reimplemented from ExManagerObject< ExCInterface >. Definition at line 59 of file ExManagerInterface.cpp. References Guard, ExManagerObject::Init(), Init(), and ExManager::SetStatus(). Referenced by Init(), InitManager(), and SetGlutCallBack().
00060 { 00061 Guard(void ExManagerInterface::Init(void)) 00062 ExManagerObject<ExCInterface>::Init(); 00063 SetStatus(true); 00064 UnGuard 00065 } |
|
Reimplemented from ExManager. Definition at line 178 of file ExManagerInterface.cpp. References ExManager::Consol, DisableAllInterface(), DisableInterface(), EnableAllInterface(), EnableInterface(), Guard, HideRegion(), InputAction(), ExManagerObject< ExCInterface >::List(), Load(), ExCAction::m_Action, ExCAction::m_NextAction, ExCAction::m_Param, and ShowRegion(). Referenced by InputAction(), and 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 } |
|
Definition at line 109 of file ExManagerInterface.cpp. References Guard, and 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 } |
|
Reimplemented from ExManager. Definition at line 172 of file ExManagerInterface.cpp. References Guard, and InputCommand(). Referenced by InputCommand().
00173 { 00174 Guard(ExCAction ExManagerInterface::InputCommand(ExCCommand Command)) 00175 return NOTHING; 00176 UnGuard 00177 } |
|
Reimplemented from ExManagerObject< ExCInterface >. Definition at line 67 of file ExManagerInterface.cpp. References ExManagerObject< ExCInterface >::Add(), ExManager::Consol, ExCInterface::Consol, ExCObject::GetName(), Guard, Load(), ExCInterface::LoadFile(), ManagerTexture, ExManagerObject< ExCInterface >::SetCurrentObject(), and ExCInterface::SetManagerTexture(). Referenced by InputAction(), ExManagerCommand::InputAction(), Load(), and 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 } |
|
Reimplemented from ExManagerObject< ExCInterface >. Definition at line 52 of file ExManagerInterface.cpp. References Guard, ExManagerObject::Reset(), and Reset(). Referenced by ExManagerCommand::ProcesExCAction(), Reset(), and SetGlutCallBack().
00053 { 00054 Guard(void ExManagerInterface::Reset(void)) 00055 ExManagerObject<ExCInterface>::Reset(); 00056 UnGuard 00057 } |
|
Definition at line 84 of file ExManagerInterface.h. References ManagerTexture. Referenced by SetManagerLink().
00085 {ManagerTexture = Texture;} |
|
Definition at line 95 of file ExManagerInterface.cpp. References ExManagerObject< ExCInterface >::GetCurrentObject(), Guard, ExCInterface::ShowRegion(), and ShowRegion(). Referenced by InputAction(), and ShowRegion().
00096 { 00097 Guard(void ExManagerInterface::ShowRegion(void)) 00098 GetCurrentObject()->ShowRegion(); 00099 UnGuard 00100 } |
|
Definition at line 70 of file ExManagerInterface.h. Referenced by DisableAllInterface(), EnableAllInterface(), and ExManagerInterface(). |
|
Definition at line 26 of file ExManagerInterface.cpp. Referenced by CreateSingleton(). |
|
Definition at line 27 of file ExManagerInterface.cpp. Referenced by CreateSingleton(). |
|
Definition at line 69 of file ExManagerInterface.h. Referenced by Load(). |