Reimplemented from Impala::Visualization::SimilarityTimeLineListener. Definition at line 367 of file SimilarityTimeLineVideo.h. References OglGui::ZoomShiftRuler::Current(), Impala::Visualization::VideoPlayer::FrameNr(), Impala::Visualization::VideoPlayer::GotoFrame(), mExtraTimeLines, mSimTimeLine, and mTimeLineRuler. 00368 { 00369 VideoPlayer* vP = (VideoPlayer*) userData; 00370 int nFrame = (int) floor((nVal / 40.)+0.5); // Finds nearest frame 00371 if (nFrame != vP->FrameNr()) 00372 vP->GotoFrame(nFrame); 00373 else 00374 { // Needed to only allow needle at center of frames 00375 mSimTimeLine->Current(nFrame*40); 00376 mTimeLineRuler->Current(nFrame*40); 00377 for (int i=0; i<mExtraTimeLines.size(); i++) 00378 mExtraTimeLines[i]->Current(nFrame*40); 00379 } 00380 }
Here is the call graph for this function:
|