Definition at line 229 of file OglDemo.h. References OglGui::TitledWindow::ContentPane(), OglGui::Tabs::CreateTab(), OglGui::OglWindow::GetDimensions(), OglGui::OglWindow::GetOGLWND(), Navigate2DChild(), Impala::Application::DemoCamera2d::oglWnd, OglGui::TitledWindow::SetContentPane(), OglGui::Window::SetWindowListener(), and OglGui::Window::Window(). Referenced by BuildGUI(). 00230 { 00231 Window* tab = tabs->CreateTab("Large Grid", 120); 00232 TitledWindow* navTW = new TitledWindow(tab,0,0,300,300,"Navigate"); 00233 TitledWindow* viewTW = new TitledWindow(tab,300,0,600,600,"ViewGrid"); 00234 TitledWindow* pixTW = new TitledWindow(tab,0,304,300,300,"Pixel Info"); 00235 Window* pixCP = pixTW->ContentPane(); 00236 Window* viewCP = viewTW->ContentPane(); 00237 OGLWND* oglWnd = Navigate2DChild(navTW->GetOGLWND(), 00238 viewCP->GetOGLWND(), 0,0, 10,10); 00239 Window* navWnd = new Window(oglWnd); 00240 OGLIMAGE* oglIms[6]; 00241 00242 00243 for (int i=0; i<6; i++) 00244 { 00245 char buf[100]; 00246 sprintf(buf, "Im_%d.png", i+1); 00247 oglIms[i] = TryReadPNG(buf); 00248 } 00249 00250 navTW->SetContentPane(navWnd); 00251 00252 oglWnd = viewCP->GetOGLWND(); 00253 oglSys.AllowPicking(oglWnd, 1, 1); 00254 00255 for (int col=0; col<10; col++) 00256 for (int row=0; row<10; row++) 00257 { 00258 OGLVIEW* view = viewSys.View2D(oglWnd, oglIms[ABSRND(6)], 00259 4 + col*520, 4 + row*520, 512, 512); 00260 viewSys.SetZoom(view, 2.f, 2.f); 00261 viewSys.SetTexturing(view, true); 00262 viewSys.SetTags(view, FlexViewTags); 00263 } 00264 00265 for (int j=0; j<6; j++) 00266 oglSys.ReleaseOglImage(oglIms[j]); 00267 00268 int clW, clH; 00269 pixCP->GetDimensions(clW, clH); 00270 LENSE* lense = Lense2D(oglWnd, 200, 200, 200, 200); 00271 LENSE* detail = Lense2D(pixCP->GetOGLWND(), -10, -10, clW+20, clH+20); 00272 DetailLense(detail, lense); 00273 detail->absZooming = true; 00274 detail->zoomX = 100.f; 00275 detail->zoomY = 100.f; 00276 pixCP->SetWindowListener(new OnPixDisplay(), (void*) detail); 00277 }
Here is the call graph for this function:
|