Definition at line 229 of file mainBackground.cpp. References Impala::Core::Stream::RgbDataSrcFactory::Construct(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), Impala::CmdOptions::Initialise(), Impala::Core::Stream::RgbDataSrcFactory::Instance(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), OglGui::OglWindow::Valid(), and Impala::Core::Stream::RgbDataSrc::Valid(). Referenced by main(). 00230 { 00231 CmdOptions& options = CmdOptions::GetInstance(); 00232 options.Initialise(true, true); 00233 options.SetDefault("sigma", "3.0"); 00234 std::string usageStr = "camera|filename\n\n"; 00235 if (! options.ParseArgs(argc, argv, usageStr, 1)) 00236 return 1; 00237 00238 std::string srcName = options.GetArg(0); 00239 RgbDataSrcFactory& factory = RgbDataSrcFactory::Instance(); 00240 RgbDataSrc* src = factory.Construct(srcName, options.GetString("src")); 00241 if (! src->Valid()) 00242 { 00243 std::cout << "RgbDataSrc failed" << std::endl; 00244 return 0; 00245 } 00246 std::cout << src->FrameWidth() << " x " << src->FrameHeight() << std::endl; 00247 00248 WindowBackground* oglWnd = new WindowBackground(src); 00249 if (! oglWnd->Valid()) 00250 { 00251 std::cout << "WindowBackground failed" << std::endl; 00252 return 0; 00253 } 00254 return 1; 00255 }
Here is the call graph for this function:
|