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

void Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetRotorText (  )  [inline, private]

Definition at line 304 of file RotorBrowserGUI.h.

References Impala::Visualization::RotorBrowser::RotorBrowser::GetActiveContext(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetNiceName(), Impala::Visualization::RotorBrowser::RotorBrowser::GetNrActiveContexts(), Impala::Visualization::RotorBrowser::RotorBrowser::GetOtherContexts(), mRotorBrowser, mRotorBrowserInfo, and OglGui::TextArea::SetText().

Referenced by ContextChangeEvent(), and ContextMoveEvent().

00305     {
00306         if (mRotorBrowserInfo == NULL)
00307             return;
00308         RotorBrowserContext* actContext = mRotorBrowser->GetActiveContext();
00309         std::ostringstream m;
00310         m << "Active context:   " << actContext->GetNiceName() << std::endl;
00311         m << "Current position: " << actContext->GetCenter() << std::endl;
00312         m << "Other contexts (" << mRotorBrowser->GetNrActiveContexts()-1;
00313         m << "): " << std::endl;
00314 
00315         RotorBrowserContextList contexts = mRotorBrowser->GetOtherContexts();
00316         RotorBrowserContextList::const_iterator context;
00317 
00318         for (context = contexts.begin(); context != contexts.end(); context++)
00319         {
00320             m << "  " << (*context)->GetNiceName() << " - " <<
00321                (*context)->GetThread()->GetShotPosition((*context)->GetCenter())
00322                << std::endl;
00323         }
00324         mRotorBrowserInfo->SetText(m.str());
00325     }

Here is the call graph for this function:


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