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

virtual void Impala::Visualization::SegmentationDocumentGuiAnno::HandleNewKey ( int  c,
int  state 
) [inline, virtual]

Reimplemented from Impala::Core::Database::DataDocumentListener.

Definition at line 549 of file SegmentationDocumentGuiAnno.h.

References OglGui::ScrollBar::ChangePos(), Impala::Visualization::AppControlDoc::CheckBinding(), DoAnno(), GoBack(), GoForw(), ILOG_DEBUG, mAnnoHistoryPos, mAnnoHistoryVSB, mRankingMode, mSimTLV, NavigateExtremes(), OnAnnoHistoryVSB(), Impala::Visualization::VideoPlayer::Play(), Impala::Visualization::SimilarityTimeLineVideo::Player(), Impala::Visualization::VideoPlayer::Playing(), OglGui::ValueScrollBar::SBar(), and Impala::Visualization::VideoPlayer::Stop().

00550     {
00551         ILOG_DEBUG("HandleNewKey: " << c);
00552         if (CheckBinding("annoPositive",c,state))
00553             DoAnno(1,false);
00554         if (CheckBinding("annoSkip",c,state))
00555             DoAnno(0.5,false);
00556         if (CheckBinding("annoNegative",c,state))
00557             DoAnno(0,false);
00558         if (CheckBinding("annoShotPositive",c,state))
00559             DoAnno(1,true);
00560         if (CheckBinding("annoShotNegative",c,state))
00561             DoAnno(0,true);
00562         if (CheckBinding("annoBackward",c,state) || (mRankingMode && c==oglLEFT))
00563             GoBack();
00564         if (CheckBinding("annoForward",c,state) || (mRankingMode && c==oglRIGHT))
00565             GoForw(true);
00566         if (c == oglHOME || c == oglEND)
00567             NavigateExtremes(c==oglHOME);
00568         if (CheckBinding("annoTogglePlay",c,state) && mSimTLV)
00569         {
00570             if (mSimTLV->Player()->Playing())
00571                 mSimTLV->Player()->Stop();
00572             else
00573                 mSimTLV->Player()->Play();
00574         }
00575         if (c == 8 || c == 127)
00576         {
00577             if (mAnnoHistoryVSB)
00578                 mAnnoHistoryVSB->SBar()->ChangePos((state&oglControl)?1:-1);
00579             else
00580                 OnAnnoHistoryVSB(mAnnoHistoryPos + ((c==8) ? -1 : 1));
00581         }
00582     }

Here is the call graph for this function:


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