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

virtual void Impala::Visualization::Window::RepositionViewers (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 294 of file Window.h.

References Impala::Core::Geometry::RectangleTiler::GetPos2d(), mAllowRepositionViewers, OglGui::Window::mIs2d, mOglView, mViewTiler, Impala::Core::Geometry::RectangleTiler::ResetWnd(), OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth().

00295     {
00296         if (!mAllowRepositionViewers)
00297             return;
00298         mViewTiler.ResetWnd(WndWidth(), WndHeight());
00299         for (int v=0 ; v<mOglView.size() ; v++)
00300         {
00301             if (mIs2d)
00302             {
00303                 int x, y, w, h;
00304                 mOglView[v]->GetDimensions2D(&x, &y, &w, &h);
00305                 mViewTiler.GetPos2d(w, h, x, y);
00306                 mOglView[v]->SetDimensions2D(x, y, RETAIN, RETAIN);
00307             }
00308             else
00309             {
00310                 // todo
00311             }
00312         }
00313     }

Here is the call graph for this function:


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