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

virtual void OglGui::Camera3DXYZ::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 113 of file Camera3DXYZ.h.

References OglGui::Window::DisplayFunc(), OglGui::OglWindow::GetOGLWND(), OglGui::OglWindow::H(), mLastX, mLastY, mMouseState, mMouseX, mMouseY, OglGui::OglWindow::mOglWnd, mPropagateMouse, mShowCamCoordinates, mStatePanCamera, mStateRotateCameraXY, mStateRotateCameraZ, mStateZoomCamera, mTarget, PanCameraXY(), RotateCameraXY(), RotateCameraZ(), OglGui::OglWindow::W(), and ZoomCameraZ().

00114     {
00115         Window::DisplayFunc();
00116 
00117         float w = W(), h = H();
00118         OGC myOGC;
00119 
00120         OGCSave(&myOGC);
00121         SetSolidLineColor(oglLIGHTBLUE);
00122         DrawLine(w/2-2, 0, w/2-2, h);
00123         DrawLine(w/2+2, 0, w/2+2, h);
00124         DrawLine(0, h/2-2, w, h/2-2);
00125         DrawLine(0, h/2+2, w, h/2+2);
00126         
00127         SCENE3D* cam = mTarget ? (SCENE3D*) mTarget->GetOGLWND()->sceneInfo : 0;
00128 
00129         if (mTarget && mPropagateMouse)
00130         {
00131             if (mMouseState == mStatePanCamera)
00132                 PanCameraXY(cam, (int) w, (int) h);
00133             if (mMouseState == mStateZoomCamera)
00134                 ZoomCameraZ(cam, (int) w, (int) h);
00135             if (mMouseState == mStateRotateCameraXY)
00136                 RotateCameraXY(cam, (int) w, (int) h);
00137             if (mMouseState == mStateRotateCameraZ)
00138                 RotateCameraZ(cam, (int) w, (int) h);
00139         }
00140         mLastX = mMouseX;
00141         mLastY = mMouseY;
00142 
00143         if (mShowCamCoordinates)
00144         {
00145             oglSys.PosColPrintf(mOglWnd, 4,4, oglBLUE, "z:%.2f", cam->camZ);
00146             oglSys.PosColPrintf(mOglWnd, 4,24, oglBLUE, "y:%.2f", cam->camY);
00147             oglSys.PosColPrintf(mOglWnd, 4,44, oglBLUE, "x:%.2f", cam->camX);
00148         }
00149         //ClampCamera(cam);
00150         OGCRestore(&myOGC);
00151     }

Here is the call graph for this function:


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