Definition at line 354 of file mainShowVidSet.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), OglGui::OglWindow::GetOGLWND(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::Visualization::AppController::Instance(), Impala::Visualization::AppController::MainLoop(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::SplashScreen::Stop(). Referenced by main(). 00355 { 00356 OglInit(&argc, &argv[0]); 00357 CmdOptions& options = CmdOptions::GetInstance(); 00358 00359 options.Initialise(true, false, true); 00360 options.SetDefault("wndWidth", "1272"); 00361 options.SetDefault("wndHeight", "955"); 00362 options.AddOption(0, "small", "", "0"); 00363 options.AddOption(0, "noArchive", "", "0"); 00364 options.AddOption(0, "imFileArchive", "", "0"); 00365 options.AddOption(0, "conceptSetSubDir", "featurename", ""); 00366 if (! options.ParseArgs(argc, argv, "", 0)) 00367 return 1; 00368 00369 ILOG_VAR(Application.mainShowVidSet); 00370 00371 int reqWndWidth = options.GetInt("wndWidth"); 00372 int reqWndHeight = options.GetInt("wndHeight"); 00373 if (options.GetBool("small")) 00374 { 00375 reqWndWidth = 1020; 00376 reqWndHeight = 740; 00377 } 00378 00379 #if !defined(OGL_USING_GLUT) && !defined(OGL_USING_QT) 00380 OglGui::SplashScreen* splash; 00381 if (options.GetBool("splashScreen")) 00382 { 00383 splash = new OglGui::SplashScreen(0,0,reqWndWidth,reqWndHeight); 00384 OGLStartThread(splash->GetOGLWND()); 00385 } 00386 #endif 00387 00388 WindowShowVidSet* oglWnd = new WindowShowVidSet(reqWndWidth, reqWndHeight); 00389 00390 #if !defined(OGL_USING_GLUT) && !defined(OGL_USING_QT) 00391 if (options.GetBool("splashScreen")) 00392 splash->Stop(); 00393 #endif 00394 00395 if (! oglWnd->Valid()) 00396 { 00397 ILOG_ERROR("WindowShowVidSet failed"); 00398 return 1; 00399 } 00400 00401 ILOG_INFO("STARTING MAIN LOOP"); 00402 AppController::Instance().MainLoop(); 00403 00404 return 0; 00405 }
Here is the call graph for this function:
|