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

virtual void Impala::Visualization::VideoTimeLine::CurrentChanged ( WindowTimeLine src,
long  nVal,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::WindowTimeLineListener.

Definition at line 100 of file VideoTimeLine.h.

References OglGui::ZoomShiftRuler::Current(), Impala::Visualization::VideoPlayer::FrameNr(), Impala::Visualization::VideoPlayer::GotoFrame(), mTimeLineRuler, and mTLineViewStrip.

00101     {
00102         VideoPlayer* vP = (VideoPlayer*) userData;
00103         int nFrame = (int) floor((nVal / 40.)+0.5); // Finds nearest frame
00104         if (nFrame != vP->FrameNr())
00105             vP->GotoFrame(nFrame);
00106         else
00107         {   // Needed to only allow needle at center of frames
00108             mTLineViewStrip->Current(nFrame*40);
00109             mTimeLineRuler->Current(nFrame*40);
00110         }
00111     }

Here is the call graph for this function:


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