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

int Impala::Visualization::SegmentationDocumentGuiAnno::FindNextAnno ( int  bit,
bool  next,
bool  stayInVideo 
) [inline]

Definition at line 372 of file SegmentationDocumentGuiAnno.h.

References Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), FindAdjacentAnnoShot(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::Segmentation::GetNrVideos(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), mCurFile, and mSegDoc.

Referenced by CheckAnnoMax(), and GoToNextAnno().

00373     {
00374         Segmentation* seg        = mSegDoc->GetSegmentation();
00375         int           nrVideos   = seg->GetNrVideos();
00376         int           curShot    = mSegDoc->CurShot();
00377         int           curFile    = mCurFile;
00378 curFile = mSegDoc->CurFileId();
00379         int           shot;
00380 
00381         if ((shot=FindAdjacentAnnoShot(curFile,bit,curShot,next))!=-1)
00382             return curFile * 100000 + shot;
00383         if (stayInVideo)
00384             return -1;
00385 
00386         if (next) while (++curFile < nrVideos)
00387         {
00388             int firstShot = seg->GetFirstShotVideo(curFile);
00389             if ((shot = FindAdjacentAnnoShot(curFile,bit,firstShot-1,true))!=-1)
00390                 return curFile * 100000 + shot;
00391         }
00392         else while(--curFile >= 0)
00393         {
00394             int firstShot = seg->GetFirstShotVideo(curFile);
00395             int lastShot = firstShot+seg->GetNrShotsVideo(curFile);
00396             if ((shot = FindAdjacentAnnoShot(curFile,bit,lastShot,false))!=-1)
00397                 return curFile * 100000 + shot;
00398         }
00399         return -1;
00400     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:58 2011 for ImpalaSrc by  doxygen 1.5.1