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

virtual void OglGui::CameraRotateControl::ButtonSelectionEvent ( Button src,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::CrossControl.

Definition at line 45 of file CameraRotateControl.h.

References CAMROT_BW, CAMROT_DOWN, CAMROT_FW, CAMROT_LEFT, CAMROT_RIGHT, CAMROT_UP, OglGui::OglWindow::GetOGLWND(), mCamRotate, OglGui::CrossControl::mResetButton, OglGui::CrossControl::mTargetWnd, and Impala::Application::DemoCamera2d::oglWnd.

00046     {
00047         if (!mTargetWnd)
00048             return;
00049         OGLWND* oglWnd = mTargetWnd->GetOGLWND();
00050         if (userData == (void*)CAMROT_FW)
00051             view3DSys.KeyFunc(oglWnd, oglCTRL('z'),
00052                               oglControl | (mCamRotate?oglShift:0));
00053         if (userData == (void*)CAMROT_BW)
00054             view3DSys.KeyFunc(oglWnd, oglCTRL('z'),
00055                               oglControl | (mCamRotate?0:oglShift));
00056         if (userData == (void*)CAMROT_LEFT)
00057             view3DSys.KeyFunc(oglWnd, mCamRotate?oglLEFT:oglRIGHT,
00058                               oglControl|oglShift);
00059         if (userData == (void*)CAMROT_RIGHT)
00060             view3DSys.KeyFunc(oglWnd, mCamRotate?oglRIGHT:oglLEFT,
00061                               oglControl|oglShift);
00062         if (userData == (void*)CAMROT_UP)
00063             view3DSys.KeyFunc(oglWnd, mCamRotate?oglUP:oglDOWN,
00064                               oglControl|oglShift);
00065         if (userData == (void*)CAMROT_DOWN)
00066             view3DSys.KeyFunc(oglWnd, mCamRotate?oglDOWN:oglUP,
00067                               oglControl|oglShift);
00068 
00069         if (src==mResetButton)
00070             view3DSys.KeyFunc(oglWnd, oglHOME, oglControl|oglShift);
00071     }

Here is the call graph for this function:


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