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_ */
chunking::Options
A class to parse the program options for the chunking executable.
Definition: src/tools/lvr2_chunking/Options.hpp:54
chunking::Options::getChunkedMesh
string getChunkedMesh() const
Returns the chunked mesh file.
Definition: src/tools/lvr2_chunking/Options.cpp:120
chunking::Options::getChunkSize
float getChunkSize() const
Returns the side length of a chunk.
Definition: src/tools/lvr2_chunking/Options.cpp:111
chunking::Options::getXMax
float getXMax() const
Returns the x-max of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:141
chunking::Options::getZMin
float getZMin() const
Returns the z-min of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:137
chunking::Options::m_posDescr
positional_options_description m_posDescr
The internally used positional option description.
Definition: src/tools/lvr2_chunking/Options.hpp:140
chunking::Options::getMeshGroup
std::string getMeshGroup() const
Returns the mesh group in the HDF5.
Definition: src/tools/lvr2_chunking/Options.cpp:162
chunking::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_chunking/Options.hpp:134
chunking::Options::getXMin
float getXMin() const
Returns the x-min of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:129
chunking::Options::getCacheSize
int getCacheSize() const
Returns the cacheSize (maximum number of chunks in HashMap while loading)
Definition: src/tools/lvr2_chunking/Options.cpp:153
chunking::Options::getOutputDir
string getOutputDir() const
Returns the output directory.
Definition: src/tools/lvr2_chunking/Options.cpp:106
chunking::Options::getLoad
bool getLoad() const
Returns the load-flag. set to true for loading an existing hdf5-file and to false for chunking and sa...
Definition: src/tools/lvr2_chunking/Options.cpp:124
chunking::Options::getYMax
float getYMax() const
Returns the y-max of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:145
chunking::Options::getZMax
float getZMax() const
Returns the z-max of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:149
chunking::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_chunking/Options.hpp:137
argc
int argc
Definition: tests_high_five_parallel.cpp:27
chunking::Options::getYMin
float getYMin() const
Returns the y-min of the bounding box.
Definition: src/tools/lvr2_chunking/Options.cpp:133
chunking::Options::getMaxChunkOverlap
float getMaxChunkOverlap() const
Returns the maximum allowed chunk overlap.
Definition: src/tools/lvr2_chunking/Options.cpp:116
chunking::Options::getInputFile
std::vector< std::string > getInputFile() const
Returns the input file.
Definition: src/tools/lvr2_chunking/Options.cpp:100
chunking::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_chunking/Options.cpp:167
chunking
Definition: src/tools/lvr2_chunking/Options.cpp:39
chunking::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_chunking/Options.cpp:47
chunking::Options::printUsage
bool printUsage() const
Prints a usage message to stdout.
Definition: src/tools/lvr2_chunking/Options.cpp:73
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