9 using boost::program_options::command_line_parser;
10 using boost::program_options::value;
18 "Produce help message")
19 (
"chunkedMesh", boost::program_options::bool_switch()->default_value(
false),
"Is a chunked Mesh")
20 (
"inputFile", value< std::vector<string> >(),
"Input file name. Supported formats are ASCII (.pts, .xyz) and .ply")
21 (
"layers", value<std::vector<string>>()->multitoken(),
"Input file names.")
22 (
"cacheSize", value<int>()->default_value(200),
"Multilayer chunked mesh the maximum number of high resolution chunks in RAM")
23 (
"highResDistance", value<float>()->default_value(150.0f),
"The distance of the far plane for the high resolution");
40 cout <<
"Error: You must specify an input file." << endl;
56 return (
m_variables[
"inputFile"].as< std::vector<string> >())[0];
62 return m_variables[
"layers"].as<std::vector<string>>();
66 return std::vector<std::string>({
"mesh0, mesh1"});
bool isChunkedMesh() const
virtual void setup()
Setup internal data structures.
std::string getInputFileName() const
Returns the input file.
options_description m_descr
The internally used option description.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
variables_map m_variables
The internally used variable map.
float getHighResDistance() const
std::vector< std::string > getLayers() const
Returns the layers used for LOD.
bool printUsage() const
Prints a usage message to stdout.