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

bool Impala::Visualization::RotorBrowser::RotorBrowser::SwitchToNextContext ( int  direction = +1  )  [inline, private]

Definition at line 2364 of file RotorBrowser.h.

References Impala::Visualization::RotorBrowser::RotorBrowserListener::ContextChangeEvent(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), ILOG_DEBUG, mActiveContext, mBrowseMode, mContexts, mManageDepth, MODE_ROTORBROWSER, mRotorBrowserListener, RepositionContexts(), and Impala::Visualization::RotorBrowser::RotorBrowserContext::SetDepth().

Referenced by KeyboardRotorFunc(), RemoveContext(), and SwitchToPreviousContext().

02365     {
02366         if (mBrowseMode != MODE_ROTORBROWSER)
02367             return false;
02368         if (mContexts.size() == 0)
02369         {
02370             ILOG_DEBUG( "RotorBrowser::SwitchToNextContext: no other contexts");
02371             return false;
02372         }
02373         RotorBrowserContext *next;
02374         if (direction < 0)
02375         {
02376             next = mContexts.back();
02377             mContexts.pop_back();
02378             mContexts.push_front(mActiveContext);
02379         }
02380         else
02381         {
02382             next = mContexts.front();
02383             mContexts.pop_front();
02384             mContexts.push_back(mActiveContext);
02385         }
02386         if (mManageDepth)
02387         {
02388             next->SetDepth(5);
02389             mActiveContext->SetDepth(3);
02390         }
02391         mActiveContext = next;
02392         ILOG_DEBUG("RotorBrowser::SwitchToNextContext: active context now: " <<
02393                    mActiveContext->GetName() );
02394         if (mRotorBrowserListener)
02395             mRotorBrowserListener->ContextChangeEvent(this, mActiveContext);
02396         RepositionContexts();
02397         return true;
02398     }

Here is the call graph for this function:


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