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

void OglGui::OglDemo::RotateSelectedViews ( Window wnd  )  [inline]

Definition at line 503 of file OglDemo.h.

References OglGui::TitledWindow::BtnMaxClose, OglGui::OglWindow::GetOGLWND(), GroupRotateChild(), ImToGroupRotate(), OglGui::Window::KeyboardFunc(), OglGui::TitledWindow::SetContentPane(), and OglGui::Window::Window().

Referenced by WindowKeyboardEvent().

00504     {
00505         TitledWindow* titW = new TitledWindow(wnd, 20, 20, 408, 332, "Rotating",
00506                                               TitledWindow::BtnMaxClose);
00507         Window*       pane = new Window(GroupRotateChild(titW->GetOGLWND(),
00508                                         0, 0, 10, 10), false);
00509         OGLWND*       oglW = wnd->GetOGLWND();
00510         LIST*         obj  = oglW->objectList;
00511 
00512         if (!obj) return;
00513 
00514         titW->SetContentPane(pane);
00515 
00516         float z = -5.0;
00517         while (obj->next) obj = obj->next;
00518         while (obj)
00519         {
00520                     OGLVIEW* view = (OGLVIEW *) obj->info;
00521                     if (viewSys.HasTags(view,selectedTag))
00522             {
00523                             float x = -2.0f + view->x / 100.0f;
00524                 float y = -2.0f + view->y / 100.0f;
00525                             OGLVIEW3D* v3D = ImToGroupRotate(pane->GetOGLWND(), view->im,
00526                                                  x, y, z, view->w/100.f,
00527                                                  view->h/100.f,1.f );
00528                 view3DSys.SetZoom(v3D, view->w/100.0f, view->h/100.f);
00529 //                                                    x, y, z, 1.f, 1.f, 1.f );
00530                 view3DSys.SetTags(v3D, selectedTag);
00531                             z -= 0.2f;
00532                     }
00533                     obj = obj->prev;
00534             }
00535         pane->KeyboardFunc('s', 0);
00536         oglSys.AllowPicking(pane->GetOGLWND(),true,true);
00537         oglSys.SetAllowCameraMove(pane->GetOGLWND(),true);
00538     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:39 2011 for ImpalaSrc by  doxygen 1.5.1