Reimplemented from OglGui::Window. Definition at line 24 of file Camera3DMoveZ.h. References OglGui::Window::DisplayFunc(), OglGui::OglWindow::GetOGLWND(), OglGui::OglWindow::H(), mMouseY, OglGui::OglWindow::mOglWnd, mPropagateMouse, mStepFactor, mTarget, mTextFeedBack, and OglGui::OglWindow::W(). 00025 { 00026 Window::DisplayFunc(); 00027 00028 DrawLine(0, H()/2, W(), H()/2); 00029 00030 if (!(mTarget && mPropagateMouse)) 00031 return; 00032 00033 SCENE3D* cam = (SCENE3D *) mTarget->GetOGLWND()->sceneInfo; 00034 float step = (mMouseY-H()/2); 00035 00036 step *= 2 * mStepFactor * (abs(step) < 15 ? 1.f : abs(step)/15.f); 00037 00038 cam->camX += step * cam->tX; 00039 cam->camY += step * cam->tY; 00040 cam->camZ += step * cam->tZ; 00041 if (!mTextFeedBack) 00042 return; 00043 oglSys.PosColPrintf(mOglWnd, 0, mMouseY, oglRED, "Z%s", 00044 step > 0 ? "+" : step < 0 ? "-" : ""); 00045 }
Here is the call graph for this function:
|