ITerrainMask.hpp
1 #ifndef OPALS_ITERRAINMASK_HPP_INCLUDED
2 #define OPALS_ITERRAINMASK_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, "opalsTerrainMask_d.lib")
9  #else
10  #pragma comment(lib, "opalsTerrainMask.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 
17 namespace opals {
18 
19  namespace opts
20  {
21  namespace TerrainMask
22  {
23  /// Options of \ref ModuleTerrainMask
24  typedef IGroup< Names::_, false, Cons<
25  ILeaf< Names::inFile, false, opals::Path >, Cons<
26  ILeaf< Names::outFile, false, opals::Path >, Cons<
27  ILeaf< Names::oFormat, false, opals::String >, Cons<
28  ILeaf< Names::minHeight, false, opals::Vector<double> >, Cons<
29  ILeaf< Names::maxWidth, false, double >, Cons<
30  ILeaf< Names::minConsensus, false, int >, Cons<
31  ILeaf< Names::noData, false, float >, Cons<
32  ILeaf< Names::debugOutFile, false, bool >
33  > > > > > > > > > Options;
34  }
35  }
36 
37  /// Identifies open terrain parts of a DSM input raster using the volume based approach by Piltz et al. (2016).
38  /** TODO:
39  More details on opalsTerrainMask with much more words,
40  possibly on several lines. */
41  /// \see \ref ModuleTerrainMask
42  class OPALS_API ITerrainMask : virtual public IModuleBase
43  {
44 
45  public:
46  static ITerrainMask* New();
47  static ITerrainMask* New( IControlObject &controlObject );
48  static ITerrainMask* New( const IModuleBase &parent );
49  static ITerrainMask* New( const IModuleBase &parent, IControlObject &controlObject );
50 
51  virtual ~ITerrainMask() {}
52 
53  /// \name Access to module-specific options.
54  ///@{
56  virtual Options& opts() = 0;
57  virtual const Options& opts() const = 0;
58  ///}@
59 
60  };
61 
62 };
63 
64 #endif