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

void Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetInitialQueryToMovies (  )  [inline]

Definition at line 67 of file RotorBrowserGUI.h.

References Impala::Core::Trec::ThreadSet::AddThreadShots(), Impala::Visualization::RotorBrowser::RotorBrowser::GetBrowseMode(), Impala::Core::Trec::ThreadSet::GetKeyframes(), ILOG_DEBUG, Impala::Visualization::RotorBrowser::RotorBrowser::MODE_CROSSBROWSER, Impala::Visualization::RotorBrowser::RotorBrowser::MODE_FORKBROWSER, mRotorBrowser, mThreadSet, Impala::Core::Trec::ShotResult::rank, Impala::Visualization::RotorBrowser::RotorBrowser::ReloadCrossBrowser(), Impala::Visualization::RotorBrowser::RotorBrowser::ReloadForkBrowser(), Impala::Visualization::RotorBrowser::RotorBrowser::ReloadInitial(), Impala::Core::Trec::ThreadSet::RemoveThread(), Impala::Core::Trec::ShotResult::score, Impala::Core::Trec::ShotResult::shotid, Impala::Visualization::RotorBrowser::RotorBrowser::UpdateViewsToContext(), and Impala::Visualization::RotorBrowser::RotorBrowser::ValidateContext().

Referenced by Impala::Application::IDash::ScreenBrowser::ButtonSelectionEvent(), Impala::Application::IDash::ScreenBrowser::DoQuery(), KeyEvent(), Impala::Application::IDash::ScreenBrowser::ShowAllMovies(), and Impala::Application::WindowTrecSearch::TabSelectionEvent().

00068     {
00069         ILOG_DEBUG("setting shots_initialquery to first shot in each movie");
00070         // RvB: Fixed
00071         //ILOG_WARN("if called more than once this will crash. Fix me!");
00072 
00073         int nrVideos = mThreadSet->GetKeyframes()->GetNrVideos();
00074         std::list<ShotResult> shots;
00075         for (int i=0; i < nrVideos; i++)
00076         {
00077             int frame = mThreadSet->GetKeyframes()->GetFirstKeyframeVideo(i);
00078             int shot = mThreadSet->GetKeyframes()->GetShotId(frame);
00079             ShotResult r;
00080             r.shotid = shot;
00081             r.score = 1.0;
00082             r.rank = i + 1;
00083             shots.push_back(r);
00084         }
00085         mThreadSet->RemoveThread("shots_initialquery");
00086         mThreadSet->AddThreadShots("initialquery", shots);
00087         mRotorBrowser->ValidateContext("shots_initialquery");
00088         mRotorBrowser->UpdateViewsToContext();
00089         int mode = mRotorBrowser->GetBrowseMode();
00090         if (mode == RotorBrowser::MODE_CROSSBROWSER)
00091             mRotorBrowser->ReloadCrossBrowser();
00092         else if(mode == RotorBrowser::MODE_FORKBROWSER)
00093             mRotorBrowser->ReloadForkBrowser();
00094         else // RvB: I do not really know how to handle this one
00095             mRotorBrowser->ReloadInitial();
00096     }

Here is the call graph for this function:


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