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

virtual void Impala::Visualization::RotorBrowser::RotorBrowser::KeyboardFunc ( int  c,
int  state 
) [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 420 of file RotorBrowser.h.

References ILOG_DEBUG, Impala::Visualization::RotorBrowser::ThreadClusterSelector::IsActive(), KeyboardClusterSelectionFunc(), KeyboardCrossFunc(), KeyboardForkFunc(), OglGui::Window::KeyboardFunc(), KeyboardRotorFunc(), mBrowseMode, mClusterSelector, MODE_CROSSBROWSER, MODE_FORKBROWSER, MODE_ROTORBROWSER, StartStills(), StdKeyboardFunc(), StopStills(), and OglGui::OglWindow::UpdateScene().

Referenced by MouseFunc(), and Impala::Visualization::RotorBrowser::RotorBrowserGUI::PressKey().

00421     {
00422         bool keySwallowed = false;
00423         StopStills();
00424 //RvB: Rather than passing keys to Window::KeyboardFunc only when not swallowed
00425 //SetDisableOGLViewKeys(true) should be called in Init(), and here should call:
00426 //OglGui::Window::KeyboardFunc(c,state);
00427         if (!keySwallowed && mClusterSelector->IsActive())
00428             keySwallowed = KeyboardClusterSelectionFunc(c, state);
00429 
00430         if (!keySwallowed)
00431             keySwallowed = StdKeyboardFunc(c,state);
00432 
00433         if (!keySwallowed)
00434         {
00435             if (mBrowseMode == MODE_ROTORBROWSER)
00436                 keySwallowed = KeyboardRotorFunc(c, state);
00437             if (mBrowseMode == MODE_CROSSBROWSER)
00438                 keySwallowed = KeyboardCrossFunc(c, state);
00439             if (mBrowseMode == MODE_FORKBROWSER)
00440                 keySwallowed = KeyboardForkFunc(c, state);
00441         }
00442 
00443         if (!keySwallowed)
00444         {
00445             ILOG_DEBUG("key "<<c<<" state "<<state<<" still unswallowed." );
00446             Window::KeyboardFunc(c, state);
00447         }
00448         StartStills();
00449         UpdateScene(true);
00450     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:48 2011 for ImpalaSrc by  doxygen 1.5.1