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

void Impala::Visualization::RotorBrowser::RotorBrowser::RemoveContext ( String  name  )  [inline]

Definition at line 1173 of file RotorBrowser.h.

References Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), ILOG_DEBUG, mActiveContext, mContexts, RepositionContexts(), SwitchToNextContext(), and UpdateViewsToContext().

01174     {
01175         if (mActiveContext->GetName() == name)
01176         {
01177             if (mContexts.size() < 1)
01178             {
01179                 ILOG_DEBUG("RotorBrowser::RemoveContext(" << name <<
01180                            "): is active and alone. Not removed.");
01181                 return;
01182             }
01183             SwitchToNextContext();
01184         }
01185         RotorBrowserContextList::iterator context;
01186         for (context=mContexts.begin(); context!=mContexts.end(); context++)
01187             if ((*context)->GetName() == name)
01188                 break;
01189         
01190         if (context != mContexts.end())
01191         {
01192             delete *context;
01193             mContexts.erase(context);
01194             ILOG_DEBUG("RotorBrowser::RemoveContext(" << name <<
01195                        "): erased. " << mContexts.size() <<
01196                        " contexts remaining.");
01197         }
01198         else
01199             ILOG_DEBUG("RotorBrowser::RemoveContext(" << name <<
01200                        "): was not in active contexts. " );
01201 
01202         RepositionContexts();
01203         UpdateViewsToContext();
01204     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:54:18 2010 for ImpalaSrc by  doxygen 1.5.1