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

virtual void Impala::Visualization::SimilarityPlotNeedleImage::KeyEvent ( OglGui::Window src,
int  c,
int  state 
) [inline, virtual]

Reimplemented from Impala::Visualization::AppControlDoc.

Definition at line 215 of file SimilarityPlotNeedleImage.h.

References FillPoints(), Impala::Core::VideoSet::Keyframes::GetNrKeyframes(), mCurKeyframe, mKeyframes, mPointSize, and UpdateImage().

00216     {
00217         int oldKeyFr = mCurKeyframe;
00218 
00219         if (c=='p' || c=='P') {
00220             if ((mPointSize += (c=='P' ? 1 : -1)) < 1)
00221                 mPointSize = 1;
00222             FillPoints();
00223         }
00224         if (c==oglLEFT && --mCurKeyframe < 0)
00225             mCurKeyframe = 0;
00226         if (c==oglRIGHT && ++mCurKeyframe > mKeyframes->GetNrKeyframes())
00227             mCurKeyframe = mKeyframes->GetNrKeyframes()-1;
00228         if (oldKeyFr != mCurKeyframe)
00229             UpdateImage();
00230     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:06 2011 for ImpalaSrc by  doxygen 1.5.1