IDTM.hpp
1 #ifndef OPALS_IDTM_HPP_INCLUDED
2 #define OPALS_IDTM_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, "opalsDTM_d.lib")
9  #else
10  #pragma comment(lib, "opalsDTM.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/GridLimit.hpp>
17 #include <opals/GridFeature.hpp>
18 #include <opals/GridInterpolator.hpp>
19 
20 namespace opals {
21 
22  namespace opts
23  {
24  namespace DTM
25  {
26  /// Options of \ref ModuleDTM
27  typedef IGroup< Names::_, false, Cons<
28  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
29  ILeaf< Names::outFile, false, opals::Path >, Cons<
30  ILeaf< Names::tileSize, false, unsigned >, Cons<
31  ILeaf< Names::gridSize, false, double >, Cons<
32  ILeaf< Names::interpolation, false, opals::GridInterpolator::Type >, Cons<
33  ILeaf< Names::neighbours, false, int >, Cons<
34  ILeaf< Names::searchRadius, false, double >, Cons<
35  ILeaf< Names::weightFunc, false, opals::Vector<opals::String> >, Cons<
36  ILeaf< Names::feature, false, opals::Vector<opals::GridFeature::Type> >, Cons<
37  ILeaf< Names::filter, false, opals::String >, Cons<
38  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
39  ILeaf< Names::multiBand, false, bool >
40  > > > > > > > > > > > > > Options;
41  }
42  }
43 
44  /// Calculates a high quality Digital Terrain Model in hybrid grid structure (i.e. regular grid + structure lines).
45  /** The aim of opalsDTM is to calculate a high quality Digital Terrain Model (DTM) in hybrid grid structure " "based on mass points, individual spotheight point, structure lines, and border lines bo stored in one or " "more OPALS datamanager (ODM) files. The resulting DTM is stored as a hybrid grid consisting of a regular " "height raster including line and spotheight point information. */
46  /// \see \ref ModuleDTM
47  class OPALS_API IDTM : virtual public IModuleBase
48  {
49 
50  public:
51  static IDTM* New();
52  static IDTM* New( IControlObject &controlObject );
53  static IDTM* New( const IModuleBase &parent );
54  static IDTM* New( const IModuleBase &parent, IControlObject &controlObject );
55 
56  virtual ~IDTM() {}
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