ISection.hpp
1 #ifndef OPALS_ISECTION_HPP_INCLUDED
2 #define OPALS_ISECTION_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 
6 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
7  #if defined _DEBUG && !defined OPALS_NO_DEBUG
8  #pragma comment(lib, "opalsSection_d.lib")
9  #else
10  #pragma comment(lib, "opalsSection.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/String.hpp>
17 #include <opals/Array.hpp>
18 
20 
21 namespace opals {
22 
23  namespace opts
24  {
25  namespace Section
26  {
27  /// Options of \ref ModuleSection
28  typedef IGroup< Names::_, false, Cons<
29  ILeaf< Names::inFile, false, opals::Path >, Cons<
30  ILeaf< Names::gridFile, false, opals::Vector<opals::Path> >, Cons<
31  ILeaf< Names::axisFile, false, opals::Path >, Cons<
32  ILeaf< Names::sectionRange, false, opals::Vector<double> >, Cons<
33  ILeaf< Names::patchSize, false, ArrayD2 >, Cons<
34  ILeaf< Names::overlap, false, double >, Cons<
35  ILeaf< Names::attribute, false, opals::String >, Cons<
36  ILeaf< Names::tileSize, false, unsigned >, Cons<
37  ILeaf< Names::outGeometry, true, opals::Vector<opals::String> >, Cons<
38  ILeaf< Names::filter, false, opals::String >
39  > > > > > > > > > > > Options;
40  }
41  }
42 
43  /// Extracts sections of user defined width/length along a specified reference axis from a point cloud (ODM).
44  /** TODO:
45  More details on opalsSection with much more words,
46  possibly on several lines. */
47  /// \see \ref ModuleSection
48  class OPALS_API ISection : virtual public IModuleBase
49  {
50 
51  public:
52  static ISection* New();
53  static ISection* New( IControlObject &controlObject );
54  static ISection* New( const IModuleBase &parent );
55  static ISection* New( const IModuleBase &parent, IControlObject &controlObject );
56 
57  virtual ~ISection() {}
58 
59  /// \name Access to module-specific options.
60  ///@{
62  virtual Options& opts() = 0;
63  virtual const Options& opts() const = 0;
64  ///}@
65 
66  };
67 
68 };
69 
70 #endif