本文整理汇总了C++中osg::ArgumentParser::getApplicationName方法的典型用法代码示例。如果您正苦于以下问题:C++ ArgumentParser::getApplicationName方法的具体用法?C++ ArgumentParser::getApplicationName怎么用?C++ ArgumentParser::getApplicationName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osg::ArgumentParser
的用法示例。
在下文中一共展示了ArgumentParser::getApplicationName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addCommandLineOptions
void ossimPlanetQtApplication::addCommandLineOptions(osg::ArgumentParser& args)
{
args.getApplicationUsage()->setApplicationName(args.getApplicationName());
args.getApplicationUsage()->setDescription(args.getApplicationName()+" is the test application for accessing wms servers.");
args.getApplicationUsage()->setCommandLineUsage(args.getApplicationName()+" [options] ...");
args.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information");
args.getApplicationUsage()->addCommandLineOption("--enable-flatland", "Uses the flat land model");
args.getApplicationUsage()->addCommandLineOption("--disable-elevation", "Uses elevation");
args.getApplicationUsage()->addCommandLineOption("--elev-estimation", "number of levels to estimate. A value of 4 will say 2^4 or 16 number of rows and cols.");
args.getApplicationUsage()->addCommandLineOption("--split-metric", "set Split Metric Ratio. Default is 3.0");
args.getApplicationUsage()->addCommandLineOption("--elev-patchsize", "number of points in each chunk.");
args.getApplicationUsage()->addCommandLineOption("--elev-exag", "Multiplier for the height values");
args.getApplicationUsage()->addCommandLineOption("--elev-cache", "Cache directory for elevation");
args.getApplicationUsage()->addCommandLineOption("--level-detail", "Maximum level of detail to split to. Default is 16 levels");
args.getApplicationUsage()->addCommandLineOption("--enable-hud", "Enables the lat lon read outs");
args.getApplicationUsage()->addCommandLineOption("--disable-hud", "Disable the lat lon read outs");
args.getApplicationUsage()->addCommandLineOption("--disable-mipmap", "Doesn't use MipMapping");
args.getApplicationUsage()->addCommandLineOption("--enable-mipmap", "Use MipMapping");
args.getApplicationUsage()->addCommandLineOption("--wms-timeout", "Time out for WMS get Capabiltites for the WmsDialog specified in seconds");
}