ILineModeler.hpp
1 #ifndef OPALS_ILINEMODELER_HPP_INCLUDED
2 #define OPALS_ILINEMODELER_HPP_INCLUDED
3 
4 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
5  #if defined _DEBUG && !defined OPALS_NO_DEBUG
6  #pragma comment(lib, "opalsLineModeler_d.lib")
7  #else
8  #pragma comment(lib, "opalsLineModeler.lib")
9  #endif
10 #endif
11 
12 #include <opals/IModuleBase.hpp>
13 #include <opals/Path.hpp>
14 #include <opals/Vector.hpp>
15 
16 namespace opals
17 {
18 
19  namespace opts
20  {
21  namespace LineModeler
22  {
23  /// Options of \ref ModuleLineModeler
24  typedef IGroup< Names::_, false, Cons<
25  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
26  ILeaf< Names::approxFile, false, opals::Path >, Cons<
27  ILeaf< Names::outFile, false, opals::Path >, Cons<
28  ILeaf< Names::oFormat, false, opals::String >, Cons<
29  ILeaf< Names::filter, false, opals::String >, Cons<
30  ILeaf< Names::processId, false, opals::Vector<opals::String> >, Cons<
31  ILeaf< Names::ignoreId, false, opals::Vector<opals::String> >, Cons<
32  ILeaf< Names::patchLength, false, opals::Vector<double> >, Cons<
33  ILeaf< Names::patchWidth, false, opals::Vector<double> >, Cons<
34  ILeaf< Names::overlap, false, opals::Vector<double> >, Cons<
35  ILeaf< Names::minAngle, false, double >, Cons<
36  ILeaf< Names::minLength, false, double >, Cons<
37  ILeaf< Names::samplingDist, false, double >, Cons<
38  ILeaf< Names::pointCount, false, opals::Vector<unsigned> >, Cons<
39  ILeaf< Names::sigmaApriori, false, opals::Vector<double> >, Cons<
40  ILeaf< Names::spikeRemoval, false, bool >, Cons<
41  ILeaf< Names::debugOutFile, false, opals::Path >
42  > > > > > > > > > > > > > > > > > > Options;
43  }
44  }
45 
46  /// Models 3D structure lines based on a point cloud (ODM) and 2D line approximations.
47  /** TODO:
48  More details on opalsLineModeler with much more words,
49  possibly on several lines. */
50  /// \see \ref ModuleLineModeler
51  class OPALS_API ILineModeler : virtual public IModuleBase
52  {
53 
54  public:
55  static ILineModeler* New();
56  static ILineModeler* New( IControlObject &controlObject );
57  static ILineModeler* New( const IModuleBase &parent );
58  static ILineModeler* New( const IModuleBase &parent, IControlObject &controlObject );
59 
60  virtual ~ILineModeler() {}
61 
62  /// \name Access to module-specific options.
63  ///@{
65  virtual Options& opts() = 0;
66  virtual const Options& opts() const = 0;
67  ///}@
68 
69  };
70 
71 }
72 
73 #endif