src/tools/lvr2_chunking/Options.hpp
Go to the documentation of this file.
1 
35 #ifndef OPTIONS_HPP_
36 #define OPTIONS_HPP_
37 
38 #include <boost/program_options.hpp>
39 #include <string>
40 #include <vector>
41 
42 namespace chunking
43 {
44 
45 using boost::program_options::options_description;
46 using boost::program_options::positional_options_description;
47 using boost::program_options::variables_map;
48 using std::string;
49 
54 class Options
55 {
56  public:
61  Options(int argc, char** argv);
62  virtual ~Options();
63 
67  bool printUsage() const;
68 
72  std::vector<std::string> getInputFile() const;
73 
77  string getOutputDir() const;
78 
82  float getChunkSize() const;
83 
87  float getMaxChunkOverlap() const;
91  string getChunkedMesh() const;
97  bool getLoad() const;
98 
102  float getXMin() const;
106  float getYMin() const;
110  float getZMin() const;
114  float getXMax() const;
118  float getYMax() const;
122  float getZMax() const;
126  int getCacheSize() const;
130  std::string getMeshGroup() const;
131 
132 private:
134  variables_map m_variables;
135 
137  options_description m_descr;
138 
140  positional_options_description m_posDescr;
141 };
142 
143 } // namespace chunking
144 
145 #endif /* OPTIONS_HPP_ */
float getChunkSize() const
Returns the side length of a chunk.
std::vector< std::string > getInputFile() const
Returns the input file.
bool printUsage() const
Prints a usage message to stdout.
float getXMax() const
Returns the x-max of the bounding box.
A class to parse the program options for the chunking executable.
string getChunkedMesh() const
Returns the chunked mesh file.
float getMaxChunkOverlap() const
Returns the maximum allowed chunk overlap.
variables_map m_variables
The internally used variable map.
int getCacheSize() const
Returns the cacheSize (maximum number of chunks in HashMap while loading)
float getZMin() const
Returns the z-min of the bounding box.
float getYMax() const
Returns the y-max of the bounding box.
options_description m_descr
The internally used option description.
float getXMin() const
Returns the x-min of the bounding box.
bool getLoad() const
Returns the load-flag. set to true for loading an existing hdf5-file and to false for chunking and sa...
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
positional_options_description m_posDescr
The internally used positional option description.
float getYMin() const
Returns the y-min of the bounding box.
string getOutputDir() const
Returns the output directory.
float getZMax() const
Returns the z-max of the bounding box.
std::string getMeshGroup() const
Returns the mesh group in the HDF5.
char ** argv


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 Mon Feb 28 2022 22:46:08