Reimplemented from OglGui::KeyListener. Reimplemented in Impala::Application::WindowBackground. Definition at line 201 of file AppControlSrc.h. References ExportFrame(), FpsReset(), Impala::Core::Stream::RgbDataSrc::FrameNr(), Impala::Visualization::AppControl::GetActive(), HandleDelayUpdate(), HandleDestroyEvent(), ILOG_INFO, Jump(), mDoContinuous, mDone, mDoOneStep, mMarkedFrameBegin, mMarkedFrameEnd, mSrc, and mStepSize. Referenced by Impala::Application::WindowBackground::KeyEvent(). 00202 { 00203 if (!GetActive()) 00204 return; 00205 00206 if (c == 'x') 00207 { 00208 ExportFrame(); 00209 } 00210 00211 if (c == 's') 00212 { 00213 mDoOneStep = true; 00214 mStepSize = abs(mStepSize); 00215 } 00216 if (c == 'S') 00217 { 00218 mDoOneStep = true; 00219 mStepSize = - abs(mStepSize); 00220 } 00221 if (c == 'a') 00222 HandleDelayUpdate(1); 00223 if (c == 'A') 00224 HandleDelayUpdate(-1); 00225 if (c == 'c') 00226 { 00227 mDoContinuous = true; 00228 FpsReset(); 00229 } 00230 if (c == 'C') 00231 mDoContinuous = false; 00232 if (c == 'd') 00233 Jump(mMarkedFrameBegin); 00234 if (c == 'D') 00235 mMarkedFrameBegin = mSrc->FrameNr(); 00236 if (c == 'e') 00237 Jump(mMarkedFrameEnd); 00238 if (c == 'E') 00239 mMarkedFrameEnd = mSrc->FrameNr(); 00240 if (c == 'Q') 00241 { 00242 ILOG_INFO("Instant exit button pressed."); 00243 mDone = true; 00244 HandleDestroyEvent(); 00245 } 00246 if (c == ' ') 00247 mDoContinuous=!mDoContinuous ; 00248 if (c == '<') 00249 Jump(mSrc->FrameNr()-1000); 00250 if (c == '>') 00251 Jump(mSrc->FrameNr()+1000); 00252 if (c == '[') 00253 Jump(mSrc->FrameNr()-100); 00254 if (c == ']') 00255 Jump(mSrc->FrameNr()+100); 00256 if (c == '}' ) 00257 Jump(mSrc->FrameNr()+10); 00258 if (c == '{' ) 00259 Jump(mSrc->FrameNr()-10); 00260 }
Here is the call graph for this function:
|