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

int Impala::Application::mainShowImSet ( int  argc,
char *  argv[] 
)

Definition at line 230 of file mainShowImSet.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().

00231 {
00232     OglInit(&argc, &argv[0]);
00233     CmdOptions& options = CmdOptions::GetInstance();
00234 
00235     options.Initialise(true, false, true);
00236     options.SetDefault("wndWidth", "1272");
00237     options.SetDefault("wndHeight", "955");
00238     options.AddOption(0, "small", "", "0");
00239     options.AddOption(0, "noArchive", "", "0");
00240     options.AddOption(0, "imFileArchive", "", "0");
00241     //options.AddOption(0, "conceptSetSubDir", "featurename", "");
00242     if (! options.ParseArgs(argc, argv, "", 0))
00243         return 1;
00244 
00245     ILOG_VAR(Application.mainShowImSet);
00246 
00247     int reqWndWidth = options.GetInt("wndWidth");
00248     int reqWndHeight = options.GetInt("wndHeight");
00249     if (options.GetBool("small"))
00250     {
00251         reqWndWidth = 1020;
00252         reqWndHeight = 740;
00253     }
00254 
00255 #if !defined(OGL_USING_GLUT) && !defined(OGL_USING_QT)
00256     OglGui::SplashScreen* splash;
00257     if (options.GetBool("splashScreen"))
00258     {
00259         splash = new OglGui::SplashScreen(0,0,reqWndWidth,reqWndHeight);
00260         OGLStartThread(splash->GetOGLWND());
00261     }
00262 #endif
00263 
00264     WindowShowImSet* oglWnd = new WindowShowImSet(reqWndWidth, reqWndHeight);
00265 
00266 #if !defined(OGL_USING_GLUT) && !defined(OGL_USING_QT)
00267     if (options.GetBool("splashScreen"))
00268         splash->Stop();
00269 #endif
00270 
00271     if (! oglWnd->Valid())
00272     {
00273         ILOG_ERROR("WindowShowImSet failed");
00274         return 1;
00275     }
00276 
00277     ILOG_INFO("STARTING MAIN LOOP");
00278     AppController::Instance().MainLoop();
00279 
00280     return 0;
00281 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:08 2011 for ImpalaSrc by  doxygen 1.5.1