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_ */
BaseOption.hpp
meshreduce::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:46
meshreduce::Options::printUsage
bool printUsage() const
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:70
meshreduce::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_mesh_reducer/Options.hpp:59
meshreduce::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:88
meshreduce::Options::getEdgeCollapseReductionRatio
float getEdgeCollapseReductionRatio() const
Reduction ratio for mesh reduction via edge collapse.
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:65
lvr2::BaseOption
Definition: BaseOption.hpp:48
meshreduce::Options::m_edgeCollapseReductionRatio
float m_edgeCollapseReductionRatio
Definition: src/tools/lvr2_mesh_reducer/Options.hpp:82
meshreduce::operator<<
ostream & operator<<(ostream &os, const Options &o)
Definition: src/tools/lvr2_mesh_reducer/Options.hpp:85
meshreduce
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:41
meshreduce::Options::getInputFileName
string getInputFileName() const
Returns the output file name.
Definition: src/tools/lvr2_mesh_reducer/Options.cpp:60
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