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

TitledWindow* OglGui::OglDemo::TitledSixViewer ( Window parent,
int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 540 of file OglDemo.h.

References OglGui::TitledWindow::BtnMax, OglGui::OglWindow::ConnectTo(), OglGui::TitledWindow::ContentPane(), OglGui::OglWindow::GetOGLWND(), OglGui::SixView2DWindow::GetView(), OglGui::OglWindow::H(), OglGui::NoVertical, OglGui::Window::ScaleChildren(), OglGui::OglWindow::ScaleTo(), scExtraControl, OglGui::OglWindow::SetDimensions(), OglGui::SixView2DWindow::SetImage(), OglGui::LenseControl::SetLenseTarget(), OglGui::Window::SetWindowListener(), and OglGui::OglWindow::W().

Referenced by BuildTab_SixViewers(), and NestedDropDown().

00541     {
00542         TitledWindow*    titWnd = new TitledWindow(parent, 0, 0, 508, 532,
00543                                                    "Six Viewer Control",
00544                                                    TitledWindow::BtnMax);
00545         Window*          pane   = titWnd->ContentPane();
00546         int              W      = pane->W();
00547         int              H      = pane->H();
00548         SixView2DWindow* v6Wnd  = new SixView2DWindow(pane,0,108,W,H-112);
00549         ZoomPanControl*  zPanC  = new ZoomPanControl(pane,0,0,W/2,108,v6Wnd,10);
00550         LenseControl*    lenseC = new LenseControl(pane,W/2+2,2,W/2-2,104,100);
00551         LENSE*           lense  = Lense2D(v6Wnd->GetOGLWND(),100,200,128,128);
00552        
00553         for (int i=0; i<6; i++)
00554         {
00555             OGLIMAGE*   oglIm;
00556             char        buf[100];
00557             sprintf(buf, "Im_%d.png", i+1);
00558             oglIm = TryReadPNG(buf);
00559             v6Wnd->SetImage(oglIm, i);
00560             oglSys.ReleaseOglImage( oglIm );
00561         }
00562 
00563         viewSys.SetTags(v6Wnd->GetView(0), selectedTag);
00564         v6Wnd->SetWindowListener(this, scExtraControl);
00565         v6Wnd ->ConnectTo(pane);
00566         zPanC ->ScaleTo(pane, NoVertical);
00567         lenseC->ScaleTo(pane, NoVertical);
00568         lenseC->ScaleChildren(0, 1);
00569         lenseC->SetLenseTarget(lense);
00570         titWnd->SetDimensions(x, y, w, h);
00571         return titWnd;
00572     }

Here is the call graph for this function:


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