IDSM.hpp
1 #ifndef OPALS_IDSM_HPP_INCLUDED
2 #define OPALS_IDSM_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, "opalsDSM_d.lib")
9  #else
10  #pragma comment(lib, "opalsDSM.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/GridLimit.hpp>
17 
18 namespace opals {
19 
20  namespace opts
21  {
22  namespace DSM
23  {
24  /// Options of \ref ModuleDSM
25  typedef IGroup< Names::_, false, Cons<
26  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
27  ILeaf< Names::outFile, false, opals::Vector<opals::Path> >, Cons<
28  ILeaf< Names::oFormat, false, opals::String >, Cons<
29  ILeaf< Names::tileSize, false, unsigned >, Cons<
30  ILeaf< Names::gridSize, false, double >, Cons<
31  ILeaf< Names::neighbours, false, int >, Cons<
32  ILeaf< Names::searchRadius, false, double >, Cons<
33  ILeaf< Names::maxSigma, false, float >, Cons<
34  ILeaf< Names::filter, false, opals::String >, Cons<
35  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
36  ILeaf< Names::noData, false, float >, Cons<
37  ILeaf< Names::multiBand, false, bool >
38  > > > > > > > > > > > > > Options;
39  }
40  }
41 
42  /// Calculates a land cover dependent DSM raster model based on the approach of Hollaus et. al. (2010).
43  /** TODO:
44  More details on opalsDSM with much more words,
45  possibly on several lines. */
46  /// \see \ref ModuleDSM
47  class OPALS_API IDSM : virtual public IModuleBase
48  {
49 
50  public:
51  static IDSM* New();
52  static IDSM* New( IControlObject &controlObject );
53  static IDSM* New( const IModuleBase &parent );
54  static IDSM* New( const IModuleBase &parent, IControlObject &controlObject );
55 
56  virtual ~IDSM() {}
57 
58  /// \name Access to module-specific options.
59  ///@{
61  virtual Options& opts() = 0;
62  virtual const Options& opts() const = 0;
63  ///}@
64 
65  };
66 
67 };
68 
69 #endif