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

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

Definition at line 1279 of file RotorBrowser.h.

References Impala::Visualization::RotorBrowser::RotorViewCache::DoCleanup(), Impala::Visualization::RotorBrowser::RotorViewCache::DoHide(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), GetContext(), Impala::Core::Trec::ThreadSet::GetKeyframes(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViews(), Impala::Core::VideoSet::SegmentationDocument::GotoKeyfr(), Impala::Visualization::RotorBrowser::ThreadClusterSelector::IsActive(), mActiveContext, ManageContexts(), mBrowseMode, mBusyManaging, mCache, mClusterSelector, mContexts, mDocument, mInitialQueryPosition, mManageContexts, MODE_CROSSBROWSER, MODE_FORKBROWSER, MODE_ROTORBROWSER, mPrograms, mThreadSet, mTrailVisited, Impala::Visualization::ShotTrail::Push(), Impala::Visualization::RotorBrowser::RotorBrowserContext::SetNiceName(), UpdateForkContexts(), UpdateTrails(), UpdateViewedShotBookmarks(), and Impala::Visualization::RotorBrowser::RotorBrowserContext::UpdateViewsToContext().

Referenced by AddContext(), Impala::Visualization::RotorBrowser::BrowserControl::ButtonSelectionEvent(), CrossBrowserNavigateKey(), DoQueryByRegion(), DoReturnToFirstQuery(), DoShowBookmarksThread(), DoVisualQuery(), KbNavigateFork(), KeyboardCrossFunc(), KeyboardForkFunc(), KeyboardRotorFunc(), MouseFunc(), Redraw(), ReloadCrossBrowser(), ReloadForkBrowser(), ReloadInitial(), RemoveContext(), Impala::Visualization::RotorBrowser::RotorBrowserGUI::ResetCrossBrowser(), ResetRanking(), RotorBrowserNavigateKey(), SetBrowseMode(), Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetInitialQueryToMovies(), and StdKeyboardFunc().

01280     {
01281         if (mBusyManaging)
01282             return;
01283 
01284         if (mClusterSelector->IsActive())
01285         {
01286             // the cluster selector does not use RotorBrowserContext objects,
01287             // but uses it's own View manager, so we do not use this manager.
01288             return;
01289         }
01290         if (mManageContexts)
01291             ManageContexts();
01292 
01293         RotorBrowserContext* time;
01294         if (mPrograms && (time = GetContext("time")))
01295         {
01296             String shotTitle = mPrograms->GetTitleForShot(time->GetCenter());
01297             time->SetNiceName("time: " + shotTitle);
01298         }
01299 
01300         int cPos = mActiveContext->GetCenter();
01301         if (mActiveContext->GetName() == "shots_initialquery")
01302             mInitialQueryPosition = cPos;
01303         mCache->DoHide(mCache->GetViews());
01304         mActiveContext->UpdateViewsToContext();
01305         if (cPos >= 0)
01306         {
01307             // set document to current position:
01308             mDocument->GotoKeyfr(mThreadSet->GetKeyframes()->GetShotRKF(cPos));
01309             UpdateTrails(); // update map:
01310             if (mTrailVisited)
01311                 mTrailVisited->Push(cPos);
01312         }
01313 
01314         RotorBrowserContextList::const_iterator context;
01315 
01316         RotorBrowserContext *matchcontext;
01317 
01318         /* Context updating is dependent on the type of browser: */
01319         if (mBrowseMode == MODE_ROTORBROWSER)
01320         {
01321             matchcontext = mActiveContext;
01322             for (context=mContexts.begin(); context!=mContexts.end(); context++)
01323                 (*context)->UpdateViewsToContext(matchcontext);
01324         }
01325         else if (mBrowseMode == MODE_CROSSBROWSER)
01326         {
01327             matchcontext = GetContext("shots_initialquery");
01328             for (context=mContexts.begin(); context!=mContexts.end(); context++)
01329                 (*context)->UpdateViewsToContext(matchcontext);
01330         }
01331         else if (mBrowseMode == MODE_FORKBROWSER)
01332             UpdateForkContexts();
01333 
01334         mCache->DoCleanup(mCache->GetViews());
01335 
01336         UpdateViewedShotBookmarks();
01337     }

Here is the call graph for this function:


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