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

void Impala::Visualization::GUI::ShotDetailSidebar::AddVisualPreviewBars (  )  [inline, private]

Definition at line 325 of file ShotDetailSidebar.h.

References OglGui::OglWindow::ConnectTo(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), Impala::Core::Trec::ThreadSet::GetImageSetThumbnails(), Impala::Core::Trec::ThreadSet::GetKeyframes(), Impala::Core::Trec::ThreadSet::GetThreadsByType(), ILOG_DEBUG, mPreviewBars, mSegDoc, mShotSimilarityPreview, mThreadSet, mThumbHeight, mThumbWidth, mVisualQueryEngine, Impala::Core::Trec::VisualQueryEngine::QueryVisual(), OglGui::Window::RepositionViewports(), OglGui::Window::ScaleChildren(), Impala::Visualization::GUI::KeyframeResultBar::SetListener(), Impala::Core::Trec::Thread::VISUAL, and OglGui::OglWindow::W().

Referenced by UpdatePreviewBars().

00326     {
00327         ILOG_DEBUG("AddVisualPreviewBars()...");
00328         int shot     = mSegDoc->CurShot();
00329         int keyframe = mThreadSet->GetKeyframes()->GetShotRKF(shot);
00330         ILOG_DEBUG("SHOT: " << shot << " --> FRAME: " << keyframe);
00331 
00332         // temp fix:
00333         int     mThumbWidth  = 320;
00334         int     mThumbHeight = 240;
00335         double  mViewScale   = 0.6;
00336 
00337         ThreadList visuals = mThreadSet->GetThreadsByType(Thread::VISUAL);
00338         for (ThreadList::iterator i = visuals.begin(); i!=visuals.end(); i++)
00339         {
00340             ILOG_DEBUG("adding " << (*i)->GetName());
00341             std::list<KeyframeResult> visualresults =
00342                 mVisualQueryEngine->QueryVisual(*i, keyframe);
00343 
00344             KeyframeResultBar *kfResultBar =
00345                 new KeyframeResultBar(mShotSimilarityPreview,
00346                                       mShotSimilarityPreview->W()-2, 124,
00347                                       (*i)->GetName(), visualresults,
00348                                       mThreadSet->GetKeyframes(),
00349                                       mThreadSet->GetImageSetThumbnails(),
00350                                       mThumbWidth, mThumbHeight, 0.20);
00351             kfResultBar->SetListener(this);
00352             kfResultBar->ConnectTo(mShotSimilarityPreview);
00353             mPreviewBars.push_back(kfResultBar);
00354         }
00355         mShotSimilarityPreview->RepositionViewports();
00356         mShotSimilarityPreview->ScaleChildren(); 
00357     }

Here is the call graph for this function:


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