Definition at line 1180 of file mainTrecSearch.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::Initialise(), Impala::Visualization::AppController::Instance(), Impala::Visualization::AppController::MainLoop(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::OglWindow::Valid(). Referenced by main(). 01181 { 01182 OglInit(&argc, &argv[0]); 01183 01184 CmdOptions& options = CmdOptions::GetInstance(); 01185 options.Initialise(true, false, true); 01186 options.SetDefault("wndWidth", "1280"); 01187 options.SetDefault("wndHeight", "975"); 01188 01189 char* extInfo = "tab to be placed on 2nd screen: Query, Details or Stills"; 01190 options.AddOption(0, "useWnd2", extInfo, "Details"); 01191 options.AddOption(0, "small", "", "0"); 01192 options.AddOption(0, "noArchive", "", "0"); 01193 options.AddOption(0, "imFileArchive", "", "0"); 01194 options.AddOption(0, "imServer", "name", ""); 01195 options.AddOption(0, "nrWeibullScales", "", "1"); 01196 options.AddOption(0, "nrWeibullLevels", "", "3"); 01197 options.AddOption(0, "noLoadWeibull", "", "0"); 01198 options.AddOption(0, "maxImagesOnRow", "", "99"); 01199 options.AddOption(0, "wndBg", "", "OglGuiBg"); 01200 01201 // options.AddOption(0, "minimap", "filename to write minimap to", ""); 01202 // options.AddOption(0, "minimapdepth", "depth of minimap", "25"); 01203 01204 options.AddOption(0, "judgeInBrowser", "", "0"); 01205 01206 options.AddOption(0, "actionloglevel", "0=all .. 10=nothing", "2"); 01207 options.AddOption(0, "actionlog", "filename", "trecsearch.log"); 01208 options.AddOption(0, "actionlogtofile", "0 = no, 1 = yes", "1"); 01209 01210 extInfo = "1=CrossBrowser, 2=RotorBrowser, 3=ForkBrowser"; 01211 options.AddOption(0, "initialbrowser", extInfo, "1"); 01212 options.AddOption(0, "enableMinimap", "", "0"); 01213 01214 extInfo = "0=no, thumbnails, 1=yes, only center, 2=yes, always"; 01215 options.AddOption(0, "mdBrowserUseKeyframes", extInfo, "0"); 01216 options.AddOption(0, "mdBrowserAspectRatio", "0=automatic, else value","0"); 01217 01218 extInfo = "nr of shots from center, 0=only center"; 01219 options.AddOption(0, "mdBrowserHighResDistance", extInfo, "0"); 01220 01221 extInfo = "hostname of VideOlympics contest server"; 01222 options.AddOption(0, "videolympicsServer", extInfo, ""); 01223 01224 extInfo = "port of VideOlympics contest server"; 01225 options.AddOption(0, "videolympicsPort", extInfo, ""); 01226 options.AddOption(0, "videolympicsTeam", "VideOlympics team nr.", ""); 01227 01228 if (!options.ParseArgs(argc, argv, "", 0)) 01229 return 1; 01230 01231 int reqWndWidth = options.GetInt("wndWidth"); 01232 int reqWndHeight = options.GetInt("wndHeight"); 01233 if (options.GetBool("small")) 01234 { 01235 reqWndWidth = 1020; 01236 reqWndHeight = 740; 01237 } 01238 01239 std::cout << "starting WindowTrecSearch..." << std::endl; 01240 WindowTrecSearch* oglWnd = new WindowTrecSearch(reqWndWidth, reqWndHeight); 01241 if (!oglWnd->Valid()) 01242 { 01243 std::cout << "WINDOWTRECSEARCH FAILED." << std::endl; 01244 return 0; 01245 } 01246 Visualization::AppController::Instance().MainLoop(); 01247 01248 return 1; 01249 }
Here is the call graph for this function:
|