INormals.hpp
1 #ifndef OPALS_INORMALS_HPP_INCLUDED
2 #define OPALS_INORMALS_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 #include <opals/NormalsAlgorithm.hpp>
6 #include <opals/SearchMode.hpp>
7 #include <opals/SelectionMode.hpp>
8 #include <opals/NormalsMetaInfo.hpp>
9 #include <opals/NormalsDirection.hpp>
10 #include <opals/String.hpp>
11 #include <opals/Path.hpp>
12 #include <opals/Vector.hpp>
13 
14 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
15  #if defined _DEBUG && !defined OPALS_NO_DEBUG
16  #pragma comment(lib, "opalsNormals_d.lib")
17  #else
18  #pragma comment(lib, "opalsNormals.lib")
19  #endif
20 #endif
21 
22 namespace opals {
23 
24  namespace opts
25  {
26  namespace Normals
27  {
28  /// Options of \ref ModuleNormals
29  typedef IGroup< Names::_, false, Cons<
30  ILeaf< Names::inFile, false, opals::Path >, Cons<
31  ILeaf< Names::filter, false, opals::Vector<opals::String> >, Cons<
32  ILeaf< Names::normalsAlg, false, opals::NormalsAlgorithm::Type >, Cons<
33  ILeaf< Names::neighbours, false, int >, Cons<
34  ILeaf< Names::searchRadius, false, float >, Cons<
35  ILeaf< Names::searchMode, false, opals::SearchMode::Type >, Cons<
36  ILeaf< Names::selMode, false, opals::SelectionMode::Type >, Cons<
37  ILeaf< Names::storeMetaInfo, false, opals::NormalsMetaInfo::Type >, Cons<
38  ILeaf< Names::direction, false, opals::NormalsDirection::Type >, Cons<
39  ILeaf< Names::debugOutFile, false, opals::Path >, Cons<
40  ILeaf< Names::debugNormalsLen, false, float >
41  > > > > > > > > > > > > Options;
42  }
43  }
44 
45  /// Estimates local surface normal vectors for each point of a specific point cloud (ODM).
46  /** TODO:
47  More details on opalsNormals */
48  /// \see \ref ModuleNormals
49  class OPALS_API INormals : virtual public IModuleBase
50  {
51 
52  public:
53  static INormals* New();
54  static INormals* New( IControlObject &controlObject );
55  static INormals* New( const IModuleBase &parent );
56  static INormals* New( const IModuleBase &parent, IControlObject &controlObject );
57 
58  virtual ~INormals() {}
59 
60  /// \name Access to module-specific options.
61  ///@{
63  virtual Options& opts() = 0;
64  virtual const Options& opts() const = 0;
65  ///}@
66 
67  };
68 
69 };
70 
71 #endif