src/tools/lvr2_transform/Options.hpp
Go to the documentation of this file.
1 
28 /*
29  * options.hpp
30  *
31  * @date 2012-08-22
32  * @author Christian Wansart <cwansart@uos.de>
33  * @author Thomas Wiemann
34  */
35 
36 #ifndef OPTIONS_HPP
37 #define OPTIONS_HPP
38 
39 #include <iostream>
40 #include <string>
41 #include <vector>
42 #include <boost/program_options.hpp>
43 
44 using std::ostream;
45 using std::cout;
46 using std::endl;
47 using std::string;
48 using std::vector;
49 
50 
51 namespace transform
52 {
53 
54  using namespace boost::program_options;
55 
60  class Options {
61  public:
62 
67  Options(int argc, char** argv);
68  virtual ~Options();
69 
73  bool printUsage() const;
74 
78  string getInputFile() const;
79 
83  string getOutputFile() const;
84 
88  string getTransformFile() const;
89 
93  bool anyTransformFile() const;
94 
98  float getScaleX() const;
99 
103  float getScaleY() const;
104 
108  float getScaleZ() const;
109 
113  float getRotationX() const;
114 
118  float getRotationY() const;
119 
123  float getRotationZ() const;
124 
128  float getTranslationX() const;
129 
133  float getTranslationY() const;
134 
138  float getTranslationZ() const;
139 
143  bool anyScale() const;
144 
148  bool anyScaleX() const;
149 
153  bool anyScaleY() const;
154 
158  bool anyScaleZ() const;
159 
163  bool anyRotation() const;
164 
168  bool anyRotationX() const;
169 
173  bool anyRotationY() const;
174 
178  bool anyRotationZ() const;
179 
183  bool anyTranslation() const;
184 
188  bool anyTranslationX() const;
189 
193  bool anyTranslationY() const;
194 
198  bool anyTranslationZ() const;
199 
200  private:
201 
203  variables_map m_variables;
204 
206  options_description m_descr;
207 
209  positional_options_description m_pdescr;
210  };
211 
212 
214  inline ostream& operator<<(ostream& os, const Options &o)
215  {
216  // TODO: Add program options?
217  cout << "##### Program options: " << endl;
218 
219  return os;
220  }
221 
222 } // namespace applymatrix
223 
224 
225 #endif /* OPTIONS_HPP */
transform::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_transform/Options.hpp:203
transform
Definition: src/tools/lvr2_transform/Options.cpp:44
transform::operator<<
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
Definition: src/tools/lvr2_transform/Options.hpp:214
transform::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_transform/Options.hpp:209
transform::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_transform/Options.hpp:60
argc
int argc
Definition: tests_high_five_parallel.cpp:27
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
transform::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_transform/Options.hpp:206


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