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

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

Definition at line 218 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().

00219 {
00220     OglInit(&argc, &argv[0]);
00221     CmdOptions& options = CmdOptions::GetInstance();
00222 
00223     options.Initialise(true, false, true);
00224     options.SetDefault("wndWidth", "1272");
00225     options.SetDefault("wndHeight", "955");
00226     options.AddOption(0, "small", "", "0");
00227     options.AddOption(0, "noArchive", "", "0");
00228     options.AddOption(0, "imFileArchive", "", "0");
00229     //options.AddOption(0, "conceptSetSubDir", "featurename", "");
00230     if (! options.ParseArgs(argc, argv, "", 0))
00231         return 1;
00232 
00233     ILOG_VAR(Application.mainShowImSet);
00234 
00235     int reqWndWidth = options.GetInt("wndWidth");
00236     int reqWndHeight = options.GetInt("wndHeight");
00237     if (options.GetBool("small"))
00238     {
00239         reqWndWidth = 1020;
00240         reqWndHeight = 740;
00241     }
00242 
00243     OglGui::SplashScreen* splash;
00244     if (options.GetBool("splashScreen"))
00245     {
00246         splash = new OglGui::SplashScreen(0,0,reqWndWidth,reqWndHeight);
00247         OGLStartThread(splash->GetOGLWND());
00248     }
00249 
00250     WindowShowImSet* oglWnd = new WindowShowImSet(reqWndWidth, reqWndHeight);
00251 
00252     if (options.GetBool("splashScreen"))
00253         splash->Stop();
00254 
00255     if (! oglWnd->Valid())
00256     {
00257         ILOG_ERROR("WindowShowImSet failed");
00258         return 1;
00259     }
00260 
00261     ILOG_INFO("STARTING MAIN LOOP");
00262     AppController::Instance().MainLoop();
00263 
00264     return 0;
00265 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:43 2010 for ImpalaSrc by  doxygen 1.5.1