src/tools/lvr2_mesh_reducer/Options.hpp
Go to the documentation of this file.
1 
28 /*
29  * Options.h
30  *
31  * Created on: Nov 21, 2010
32  * Author: Thomas Wiemann
33  */
34 
35 #ifndef OPTIONS_H_
36 #define OPTIONS_H_
37 
39 
40 #include <boost/program_options.hpp>
41 #include <float.h>
42 #include <iostream>
43 #include <string>
44 #include <vector>
45 
46 using std::cout;
47 using std::endl;
48 using std::ostream;
49 using std::string;
50 using std::vector;
51 
52 namespace meshreduce
53 {
54 
59 class Options : public lvr2::BaseOption
60 {
61  public:
66  Options(int argc, char** argv);
67  virtual ~Options();
68 
72  string getInputFileName() const;
73 
77  float getEdgeCollapseReductionRatio() const;
78 
79  bool printUsage() const;
80 
81  private:
83 };
84 
85 inline ostream& operator<<(ostream& os, const Options& o)
86 {
87  if (o.getEdgeCollapseReductionRatio() > 0.0)
88  {
89  cout << "##### Edge collapse reduction ratio\t: " << o.getEdgeCollapseReductionRatio()
90  << endl;
91  }
92 
93  return os;
94 }
95 
96 } // namespace meshreduce
97 
98 #endif /* OPTIONS_H_ */
string getInputFileName() const
Returns the output file name.
A class to parse the program options for the reconstruction executable.
float getEdgeCollapseReductionRatio() const
Reduction ratio for mesh reduction via edge collapse.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
ostream & operator<<(ostream &os, const Options &o)
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