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

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

Definition at line 1339 of file RotorBrowser.h.

References Impala::Visualization::ShotTrail::AddThread(), GetThreadByName(), mActiveContext, mContexts, mTrailVisibleVisualA, and mTrailVisibleVisualB.

Referenced by UpdateViewsToContext().

01340     {
01341 
01342         // add the visual and conceptual similarity directions,
01343         Thread* visual = GetThreadByName("visual_vissemgabor");
01344         ((ThreadVisualSimilarity*)visual)->SetMaxReturned(100);
01345 
01346         Thread* conceptual = GetThreadByName("visual_vissem");
01347         ((ThreadVisualSimilarity*)conceptual)->SetMaxReturned(100);
01348 
01349         if (mTrailVisibleVisualA && mTrailVisibleVisualB)
01350         {
01351             mTrailVisibleVisualA->AddThread(visual, 9);
01352             mTrailVisibleVisualB->AddThread(conceptual, 9);
01353         }
01354 
01355         // update each thread according to fork browsing:
01356         RotorBrowserContextList::const_iterator context;
01357         for (context = mContexts.begin(); context != mContexts.end(); context++)
01358         {
01359             if ((*context)->GetName() == "shots_initialquery")
01360                 (*context)->UpdateViewsToContext(*context);
01361             else if ((*context)->GetName() == "history")
01362             {
01363                 // if history is not active always show the last entry:
01364                 (*context)->GoLast();
01365                 (*context)->UpdateViewsToContext(*context);
01366             }
01367             else
01368                 (*context)->UpdateViewsToContext(mActiveContext);
01369         }
01370     }

Here is the call graph for this function:


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