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

void Impala::Visualization::AllFramesTLineVideo::ShowBoundaries ( SimilarityTimeLine simTL  )  [inline]

Definition at line 477 of file AllFramesTLineVideo.h.

References Impala::Core::VideoSet::SegmentationDocument::CurFrame(), Impala::Visualization::TimeLineViewStrip::FrameError(), OglGui::ZoomShiftRuler::GetAxisY(), Impala::Core::VideoSet::Keyframes::GetFirstKeyframeVideo(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Keyframes::GetFrameNr(), Impala::Core::VideoSet::SegmentationDocument::GetKeyframes(), Impala::Core::VideoSet::Keyframes::GetNrKeyframesVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), Impala::Core::VideoSet::Segmentation::GetStart(), Impala::Core::VideoSet::Keyframes::IsRKF(), mCurFile, mSegDoc, mShowBoundaries, and OglGui::ZoomShiftRuler::Unit2Pixel().

Referenced by WindowDisplayEvent().

00478     {
00479         if (!mShowBoundaries)
00480             return;
00481 
00482         Segmentation* seg   = mSegDoc->GetSegmentation();
00483         int firstShot       = seg->GetFirstShotVideo(mCurFile);
00484         int nrShots         = seg->GetNrShotsVideo(mCurFile);
00485         int frameErr        = simTL->FrameError();
00486 
00487         int y = simTL->GetAxisY();
00488 
00489         int i, x, frame;
00490 
00491         SetSolidLineColor(0xffff8050);
00492         for (i=firstShot; i<firstShot+nrShots; i++)
00493         {
00494             frame = seg->GetStart(i);
00495             x = simTL->Unit2Pixel((frame-frameErr)*40);
00496             DrawLine(x,y-16,x,y+200);
00497         }
00498 
00499         Keyframes* keys = mSegDoc->GetKeyframes();
00500         int firstKeyfr = keys->GetFirstKeyframeVideo(mCurFile);
00501         int nrKeys = keys->GetNrKeyframesVideo(mCurFile);
00502 
00503         int curFr = mSegDoc->CurFrame();
00504         for (i=firstKeyfr; i<firstKeyfr+nrKeys; i++)
00505         {
00506             frame = keys->GetFrameNr(i);
00507             ULONG col = keys->IsRKF(i) ? oglRED : oglBLUE;
00508             if (curFr == frame)
00509                 col = oglGREEN;
00510             SetSolidLineColor(col);
00511             x = simTL->Unit2Pixel((frame-frameErr/*+15*/)*40);
00512             //x = simTL->Unit2Pixel((frame-frameErr)*40);
00513             DrawLine(x,y-16,x,y+100);
00514         }
00515     }

Here is the call graph for this function:


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