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

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

Definition at line 461 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().

00462     {
00463         int shot = 0;
00464 
00465         if (mRankingMode && mRankedShots.size())
00466         {
00467             if ((mCurRankShot = toStart ? 0 : mRankedShots.size()-1)!=-1)
00468                 shot = mRankedShots[mCurRankShot];
00469         }
00470         else
00471         {
00472             Segmentation* seg = mSegDoc->GetSegmentation();
00473             shot =  seg->GetFirstShotVideo(mCurFile);
00474             if (!toStart)
00475                 shot += seg->GetNrShotsVideo(mCurFile)-1;
00476         }
00477         mSegDoc->GotoShot(shot);
00478         AllHandleNewCursor(Core::Database::LEVEL_SHOT, false);
00479     }

Here is the call graph for this function:


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