src/tools/lvr2_hdf5_mesh_builder/Options.cpp
Go to the documentation of this file.
1 
28 #include "Options.hpp"
29 
30 namespace hdf5meshtool
31 {
32 
33 Options::Options(int argc, char** argv) : m_descr("Supported options")
34 {
35 
36  // Create option descriptions
37 
38  m_descr.add_options()
39  ("help", "Produce help message")
40  ("inputFile,i", value<string>()->default_value("triangle_mesh.ply"), "Input mesh file.")
41  ("outputFile,o", value<string>()->default_value("mesh.h5"), "Output file.")
42  ("meshName,m", value<string>()->default_value("mesh"), "The name of the mesh to write")
43  ("edgeCollapse,e", value<size_t>()->default_value(0), "Edge collapse reduction algorithm, the number of edges to collapse.")
44  ("localRadius,r", value<float>()->default_value(0.3), "The local radius used for roughness and height differences computation.")
45  ;
46 
47 
48  // Parse command line and generate variables map
49  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
50  notify(m_variables);
51 
52  if(m_variables.count("help")) {
53  ::std::cout<< m_descr << ::std::endl;
54  exit(-1);
55  }
56 
57 
58 }
59 
61  // TODO Auto-generated destructor stub
62 }
63 
64 } // namespace reconstruct
Options.hpp
hdf5meshtool::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.cpp:60
hdf5meshtool::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.cpp:33
hdf5meshtool::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.hpp:69
hdf5meshtool
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.cpp:30
options
const kaboom::Options * options
Definition: src/tools/lvr2_kaboom/Main.cpp:45
hdf5meshtool::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.hpp:72
hdf5meshtool::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_hdf5_mesh_builder/Options.hpp:75
argc
int argc
Definition: tests_high_five_parallel.cpp:27
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24