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

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

Definition at line 242 of file ShotDetailSidebar.h.

References Impala::Visualization::ImagesWindow::AddImage(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), Impala::Core::VideoSet::Stills::GetFirstStillShot(), Impala::Core::ImageSet::ImageSet::GetImage(), Impala::Core::VideoSet::SegmentationDocument::GetImSetStills(), Impala::Core::VideoSet::Stills::GetNrStillsShot(), ILOG_DEBUG, mSegDoc, mSetFrames, mSetFramesShown, mStills, and Impala::Visualization::ImagesWindow::RemoveImages().

Referenced by UpdateCurrentShot().

00243     {
00244         if (mSetFrames == NULL)
00245             return;
00246 
00247         mSetFrames->RemoveImages();
00248 
00249         Core::ImageSet::ImageSet* imSetStills = mSegDoc->GetImSetStills();
00250         if (!imSetStills)
00251             return;
00252 
00253         int shot  = mSegDoc->CurShot();
00254         int start = mStills->GetFirstStillShot(shot);
00255         int end   = start + mStills->GetNrStillsShot(shot);
00256 
00257         int totalstills = end - start;
00258         int increment   = 1;
00259         if (totalstills > mSetFramesShown)
00260             increment = totalstills / mSetFramesShown;
00261 
00262         ILOG_DEBUG("ShotDetailWindow::UpdateStills() with " << start <<
00263                    " to "<< end << " total " << totalstills << ", showing " <<
00264                    mSetFramesShown << " using inc " << increment);
00265 
00266         for (int i=start ; i<end ; i+=increment)
00267         {
00268             Array2dVec3UInt8* im = imSetStills->GetImage(i);
00269             mSetFrames->AddImage(im, String("Direct"), "", true);
00270         }
00271     }

Here is the call graph for this function:


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