Definition at line 473 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(). 00474 { 00475 if (!mShowBoundaries) 00476 return; 00477 00478 Segmentation* seg = mSegDoc->GetSegmentation(); 00479 int firstShot = seg->GetFirstShotVideo(mCurFile); 00480 int nrShots = seg->GetNrShotsVideo(mCurFile); 00481 int frameErr = simTL->FrameError(); 00482 00483 int y = simTL->GetAxisY(); 00484 00485 int i, x, frame; 00486 00487 SetSolidLineColor(0xffff8050); 00488 for (i=firstShot; i<firstShot+nrShots; i++) 00489 { 00490 frame = seg->GetStart(i); 00491 x = simTL->Unit2Pixel((frame-frameErr)*40); 00492 DrawLine(x,y-16,x,y+200); 00493 } 00494 00495 Keyframes* keys = mSegDoc->GetKeyframes(); 00496 int firstKeyfr = keys->GetFirstKeyframeVideo(mCurFile); 00497 int nrKeys = keys->GetNrKeyframesVideo(mCurFile); 00498 00499 int curFr = mSegDoc->CurFrame(); 00500 for (i=firstKeyfr; i<firstKeyfr+nrKeys; i++) 00501 { 00502 frame = keys->GetFrameNr(i); 00503 ULONG col = keys->IsRKF(i) ? oglRED : oglBLUE; 00504 if (curFr == frame) 00505 col = oglGREEN; 00506 SetSolidLineColor(col); 00507 x = simTL->Unit2Pixel((frame-frameErr/*+15*/)*40); 00508 //x = simTL->Unit2Pixel((frame-frameErr)*40); 00509 DrawLine(x,y-16,x,y+100); 00510 } 00511 }
Here is the call graph for this function:
|