#include <ExManagerInterface.h>
Public Methods | |
ExManagerInterface (void) | |
~ExManagerInterface (void) | |
void | SetManagerId (ExManagerId *Id) |
void | SetManagerWindow (ExManagerWindow *Window) |
void | SetManagerTexture (ExManagerTexture *Texture) |
void | ShowRegion (void) |
void | HideRegion (void) |
void | init (void) |
void | Reset (void) |
void | DrawInterface (void) |
bool | LoadInterface (const char *FileName) |
SAction | InputCommand (int command, int mousex, int mousey) |
int | EnableInterface (char *param) |
int | DisableInterface (char *param) |
int | EnableAllInterface (void) |
int | DisableAllInterface (void) |
int | GetNumberEnableInterface (void) |
void | ListInterface (void) |
Data Fields | |
std::ostrstream * | Consol |
void(* | WriteToConsol )(const char *Label) |
Private Attributes | |
ExManagerId * | ManagerId |
ExManagerWindow * | ManagerWindow |
ExManagerTexture * | ManagerTexture |
std::vector< ExCInterface > | m_VecInterface |
std::vector< ExCInterface >::iterator | m_ItVecInterface |
|
Definition at line 26 of file ExManagerInterface.cpp.
00027 { 00028 } |
|
Definition at line 30 of file ExManagerInterface.cpp.
00031 { 00032 } |
|
Definition at line 150 of file ExManagerInterface.cpp. References DisableAllInterface(), GetNumberEnableInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by DisableAllInterface(), and ExManagerCommand::ProcessAction().
00151 { 00152 Guard(int ExManagerInterface::DisableAllInterface(void)) 00153 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00154 { 00155 m_ItVecInterface->DisableInterface(); 00156 } 00157 return GetNumberEnableInterface(); 00158 UnGuard 00159 } |
|
Definition at line 125 of file ExManagerInterface.cpp. References DisableInterface(), GetNumberEnableInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by DisableInterface(), and ExManagerCommand::ProcessAction().
00126 { 00127 Guard(int ExManagerInterface::DisableInterface(char *param)) 00128 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00129 { 00130 if(strcmp(m_ItVecInterface->GetInterfaceName(),param)==0) 00131 { 00132 m_ItVecInterface->DisableInterface(); 00133 } 00134 } 00135 return GetNumberEnableInterface(); 00136 UnGuard 00137 } |
|
Definition at line 65 of file ExManagerInterface.cpp. References DrawInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by DrawInterface(), and ExManagerOutput::DrawScene().
00066 { 00067 Guard(void ExManagerInterface::DrawInterface(void)) 00068 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00069 { 00070 if(m_ItVecInterface->GetInterfaceState()) 00071 { 00072 m_ItVecInterface->DrawInterface(); 00073 } 00074 } 00075 UnGuard 00076 } |
|
Definition at line 139 of file ExManagerInterface.cpp. References EnableAllInterface(), GetNumberEnableInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by EnableAllInterface(), and ExManagerCommand::ProcessAction().
00140 { 00141 Guard(int ExManagerInterface::EnableAllInterface(void)) 00142 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00143 { 00144 m_ItVecInterface->EnableInterface(); 00145 } 00146 return GetNumberEnableInterface(); 00147 UnGuard 00148 } |
|
Definition at line 114 of file ExManagerInterface.cpp. References EnableInterface(), GetNumberEnableInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by EnableInterface(), and ExManagerCommand::ProcessAction().
00115 { 00116 Guard(int ExManagerInterface::EnableInterface(char *param)) 00117 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00118 { 00119 00120 } 00121 return GetNumberEnableInterface(); 00122 UnGuard 00123 } |
|
Definition at line 161 of file ExManagerInterface.cpp. References GetNumberEnableInterface(), Guard, m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by DisableAllInterface(), DisableInterface(), EnableAllInterface(), EnableInterface(), and GetNumberEnableInterface().
00162 { 00163 Guard(int ExManagerInterface::GetNumberEnableInterface(void)) 00164 int ret=0; 00165 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00166 { 00167 if(m_ItVecInterface->GetInterfaceState())ret++; 00168 } 00169 return ret; 00170 UnGuard 00171 } |
|
Definition at line 88 of file ExManagerInterface.cpp. References Guard, HideRegion(), m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by HideRegion(), and ExManagerCommand::ProcessAction().
00089 { 00090 Guard(void ExManagerInterface::HideRegion(void)) 00091 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00092 { 00093 m_ItVecInterface->HideRegion(); 00094 } 00095 UnGuard 00096 } |
|
Definition at line 41 of file ExManagerInterface.cpp. References Guard, init(), and UnGuard. Referenced by init(), and SetGlutCallBack().
00042 { 00043 Guard(void ExManagerInterface::init(void)) 00044 00045 UnGuard 00046 } |
|
Definition at line 98 of file ExManagerInterface.cpp. References Guard, InputCommand(), m_ItVecInterface, m_VecInterface, NOTHING, and UnGuard. Referenced by InputCommand(), and ExManagerCommand::InputCommand().
00099 { 00100 Guard(int ExManagerInterface::InputCommand(int command,int mousex,int mousey)) 00101 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00102 { 00103 if(m_ItVecInterface->GetInterfaceState()) 00104 { 00105 00106 return m_ItVecInterface->InputCommand(command,mousex,mousey); 00107 00108 } 00109 } 00110 return NOTHING; 00111 UnGuard 00112 } |
|
Definition at line 173 of file ExManagerInterface.cpp. References Consol, Guard, ListInterface(), m_ItVecInterface, m_VecInterface, and UnGuard. Referenced by ListInterface(), and ExManagerCommand::ProcessAction().
00174 { 00175 Guard(void ExManagerInterface::ListInterface(void)) 00176 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00177 { 00178 if(m_ItVecInterface->GetInterfaceState()) 00179 { 00180 *Consol<<"Interface :"<<m_ItVecInterface->GetInterfaceName()<<"State : enable"<<std::endl; 00181 }else 00182 { 00183 *Consol<<"Interface :"<<m_ItVecInterface->GetInterfaceName()<<"State : Disable"<<std::endl; 00184 } 00185 } 00186 UnGuard 00187 } |
|
Definition at line 48 of file ExManagerInterface.cpp. References Consol, ExCInterface::Consol, Guard, ExCInterface::LoadInterface(), LoadInterface(), m_VecInterface, ManagerTexture, ManagerWindow, ExCInterface::SetManagerTexture(), ExCInterface::SetManagerWindow(), UnGuard, WriteToConsol, and ExCInterface::WriteToConsol. Referenced by LoadInterface(), ExManagerCommand::LoadSetOfFile(), and ExManagerCommand::ProcessAction().
00049 { 00050 Guard(bool ExManagerInterface::LoadInterface(const char * FileName)) 00051 ExCInterface Inter; 00052 Inter.SetManagerWindow(ManagerWindow); 00053 Inter.SetManagerTexture(ManagerTexture); 00054 Inter.WriteToConsol=WriteToConsol; 00055 Inter.Consol=Consol; 00056 if(Inter.LoadInterface(FileName)) 00057 { 00058 m_VecInterface.push_back(Inter); 00059 return true; 00060 } 00061 return false; 00062 UnGuard 00063 } |
|
Definition at line 34 of file ExManagerInterface.cpp. References Guard, m_VecInterface, Reset(), and UnGuard. Referenced by ExManagerCommand::ProcessAction(), Reset(), and SetGlutCallBack().
00035 { 00036 Guard(void ExManagerInterface::Reset(void)) 00037 m_VecInterface.clear(); 00038 UnGuard 00039 } |
|
Definition at line 61 of file ExManagerInterface.h. Referenced by SetManagerLink().
00061 {ManagerId = Id;} |
|
Definition at line 63 of file ExManagerInterface.h. Referenced by SetManagerLink().
00063 {ManagerTexture = Texture;} |
|
Definition at line 62 of file ExManagerInterface.h. Referenced by SetManagerLink().
00062 {ManagerWindow = Window;} |
|
Definition at line 78 of file ExManagerInterface.cpp. References Guard, m_ItVecInterface, m_VecInterface, ShowRegion(), and UnGuard. Referenced by ExManagerCommand::ProcessAction(), and ShowRegion().
00079 { 00080 Guard(void ExManagerInterface::ShowRegion(void)) 00081 for(m_ItVecInterface=m_VecInterface.begin();m_ItVecInterface!=m_VecInterface.end();m_ItVecInterface++) 00082 { 00083 m_ItVecInterface->ShowRegion(); 00084 } 00085 UnGuard 00086 } |
|
Definition at line 58 of file ExManagerInterface.h. Referenced by ListInterface(), LoadInterface(), and SetManagerLink(). |
|
Definition at line 48 of file ExManagerInterface.h. Referenced by DisableAllInterface(), DisableInterface(), DrawInterface(), EnableAllInterface(), EnableInterface(), GetNumberEnableInterface(), HideRegion(), InputCommand(), ListInterface(), and ShowRegion(). |
|
Definition at line 47 of file ExManagerInterface.h. Referenced by DisableAllInterface(), DisableInterface(), DrawInterface(), EnableAllInterface(), EnableInterface(), GetNumberEnableInterface(), HideRegion(), InputCommand(), ListInterface(), LoadInterface(), Reset(), and ShowRegion(). |
|
Definition at line 43 of file ExManagerInterface.h. |
|
Definition at line 45 of file ExManagerInterface.h. Referenced by LoadInterface(). |
|
Definition at line 44 of file ExManagerInterface.h. Referenced by LoadInterface(). |
|
Referenced by LoadInterface(), and SetManagerLink(). |