Reimplemented from OglGui::CrossControl. Definition at line 49 of file ViewRotateControl.h. References OglGui::OglWindow::GetOGLWND(), OglGui::Window::Is2d(), mKeyFunc, OglGui::CrossControl::mResetButton, OglGui::CrossControl::mTargetWnd, Impala::Application::DemoCamera2d::oglWnd, VIEWROTATE_BW, VIEWROTATE_DOWN, VIEWROTATE_FW, VIEWROTATE_LEFT, VIEWROTATE_RIGHT, and VIEWROTATE_UP. 00050 { 00051 if (!mTargetWnd ) return; 00052 00053 OGLWND* oglWnd = mTargetWnd->GetOGLWND(); 00054 bool is2D = mTargetWnd->Is2d(); 00055 00056 if (userData == (void*)VIEWROTATE_FW) 00057 mKeyFunc(oglWnd, is2D ? oglCTRL('r') : 'Z', 00058 is2D ? oglControl|oglShift : 0); 00059 if (userData == (void*)VIEWROTATE_BW) 00060 mKeyFunc(oglWnd, is2D ? oglCTRL('r') : 'z', is2D ? oglControl : 0); 00061 if (userData == (void*)VIEWROTATE_LEFT && !is2D) 00062 mKeyFunc(oglWnd, 'y', 0); 00063 if (userData == (void*)VIEWROTATE_RIGHT && !is2D) 00064 mKeyFunc(oglWnd, 'Y', 0); 00065 if (userData == (void*)VIEWROTATE_UP && !is2D) 00066 mKeyFunc(oglWnd, 'x', 0); 00067 if (userData == (void*)VIEWROTATE_DOWN && !is2D) 00068 mKeyFunc(oglWnd, 'X', 0); 00069 if (src==mResetButton) 00070 mKeyFunc(oglWnd, oglHOME, oglShift); 00071 }
Here is the call graph for this function:
|