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

void Impala::Visualization::SegmentationDocumentGuiAnno::NavigateExtremes ( bool  toStart  )  [inline]

Definition at line 486 of file SegmentationDocumentGuiAnno.h.

References Impala::Visualization::AppControlDoc::AllHandleNewCursor(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), Impala::Core::VideoSet::SegmentationDocument::GotoShot(), Impala::Core::Database::LEVEL_SHOT, mCurFile, mCurRankShot, mRankedShots, mRankingMode, and mSegDoc.

Referenced by ButtonSelectionEvent(), and HandleNewKey().

00487     {
00488         int shot = 0;
00489 
00490         if (mRankingMode && mRankedShots.size())
00491         {
00492             if ((mCurRankShot = toStart ? 0 : mRankedShots.size()-1)!=-1)
00493                 shot = mRankedShots[mCurRankShot];
00494         }
00495         else
00496         {
00497             Segmentation* seg = mSegDoc->GetSegmentation();
00498             shot =  seg->GetFirstShotVideo(mCurFile);
00499             if (!toStart)
00500                 shot += seg->GetNrShotsVideo(mCurFile)-1;
00501         }
00502         mSegDoc->GotoShot(shot);
00503         AllHandleNewCursor(Core::Database::LEVEL_SHOT, false);
00504     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:46:29 2010 for ImpalaSrc by  doxygen 1.5.1