Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ArrayT>
virtual void Impala::Application::WindowShow< ArrayT >::MouseFunc ( INT  msg,
INT  but,
INT  state,
INT  x,
INT  y 
) [inline, protected, virtual]

Definition at line 139 of file mainShow.cpp.

References Impala::Application::WindowShow< ArrayT >::mDispMode, OglGui::OglWindow::mOglWnd, OglGui::Window::MouseFunc(), and Impala::Application::WindowShow< ArrayT >::ShowCurImage().

00140     {
00141         Visualization::Window::MouseFunc(msg, but, state, x, y);
00142 
00143         if ((mDispMode == "jpg") || (mDispMode == "png"))
00144         {
00145             return;
00146         }
00147 
00148         if ((msg == oglMouseDown) && (but == oglRightButton))
00149         {
00150             OGLMENU menu = oglSys.MenuCreate();
00151             oglSys.MenuAdd(menu, "Direct", 0, 11);
00152             oglSys.MenuAdd(menu, "Stretch", 0, 12);
00153             oglSys.MenuAdd(menu, "Sigma", 0, 13);
00154             oglSys.MenuAdd(menu, "StrMax", 0, 14);
00155             oglSys.MenuAdd(menu, "LogMagnitude", 0, 15);
00156             oglSys.MenuAdd(menu, "Binary", 0, 16);
00157             oglSys.MenuAdd(menu, "Label", 0, 17);
00158             oglSys.MenuAdd(menu, "Label60", 0, 18);
00159 
00160             int choice = oglSys.MenuPopUp(mOglWnd, menu);
00161 
00162             switch (choice)
00163             {
00164             case 11: ShowCurImage("Direct"); break;
00165             case 12: ShowCurImage("Stretch"); break;
00166             case 13: ShowCurImage("Sigma"); break;
00167             case 14: ShowCurImage("StrMax"); break;
00168             case 15: ShowCurImage("LogMagnitude"); break;
00169             case 16: ShowCurImage("Binary"); break;
00170             case 17: ShowCurImage("Label"); break;
00171             case 18: ShowCurImage("Label60"); break;
00172             }
00173 
00174             oglSys.MenuDestroy(menu);
00175             oglSys.UpdateSceneFlag(mOglWnd, 1);
00176         }
00177     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:37:38 2010 for ImpalaSrc by  doxygen 1.5.1