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

void Impala::Visualization::RotorBrowser::RotorBrowser::ToggleShotSwallowThread (  )  [inline]

Definition at line 1222 of file RotorBrowser.h.

References Impala::Core::Trec::ThreadVirtual::AddThread(), GetThreadByName(), Impala::Core::Trec::ThreadVirtual::HasThread(), Impala::Core::Trec::ThreadVirtual::RemoveThread(), SetEnableShotSwallow(), and ShowStatusStr().

Referenced by StdKeyboardFunc().

01223     {
01224         ThreadVirtual *v = (ThreadVirtual*)GetThreadByName("virtual_hidden");
01225         Thread *positive = GetThreadByName("bookmarked");
01226         Thread *negative = GetThreadByName("bookmarked_negative");
01227 
01228         SetEnableShotSwallow(true);
01229         // RvB: No check was made on v
01230         if (!v)
01231             return;
01232         if (v->HasThread(positive) && v->HasThread(negative))
01233         {
01234             v->RemoveThread(positive);
01235             ShowStatusStr("Hide shots", "only negative", oglDARKRED);
01236             return;
01237         }
01238         if (v->HasThread(negative))
01239         {
01240             v->RemoveThread(negative); 
01241             v->AddThread(positive);
01242             ShowStatusStr("Hide shots", "only positive", oglDARKGREEN);
01243             return;
01244         }
01245         if (v->HasThread(positive)) {
01246             v->AddThread(negative);
01247             ShowStatusStr("Hide shots","both positive and negative",0xffdddd22);
01248             return;
01249         }
01250     }

Here is the call graph for this function:


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