IGrid.hpp
1 #ifndef OPALS_IGRID_HPP_INCLUDED
2 #define OPALS_IGRID_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 #include <opals/GridInterpolator.hpp>
6 #include <opals/GridFeature.hpp>
7 #include <opals/GridLimit.hpp>
8 #include <opals/SelectionMode.hpp>
9 #include <opals/String.hpp>
10 #include <opals/Path.hpp>
11 #include <opals/Vector.hpp>
12 
13 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
14  #if defined _DEBUG && !defined OPALS_NO_DEBUG
15  #pragma comment(lib, "opalsGrid_d.lib")
16  #else
17  #pragma comment(lib, "opalsGrid.lib")
18  #endif
19 #endif
20 
21 namespace opals {
22 
23  namespace opts
24  {
25  namespace Grid
26  {
27  /// Options of \ref ModuleGrid
28  typedef IGroup< Names::_, false, Cons<
29  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
30  ILeaf< Names::outFile, false, opals::Vector<opals::Path> >, Cons<
31  ILeaf< Names::oFormat, false, opals::String >, Cons<
32  ILeaf< Names::tileSize, false, unsigned >, Cons<
33  ILeaf< Names::gridSize, false, double >, Cons<
34  ILeaf< Names::attribute, false, opals::String >, Cons<
35  ILeaf< Names::interpolation, false, opals::GridInterpolator::Type >, Cons<
36  ILeaf< Names::neighbours, false, int >, Cons<
37  ILeaf< Names::searchRadius, false, double >, Cons<
38  ILeaf< Names::selMode, false, opals::SelectionMode::Type >, Cons<
39  ILeaf< Names::weightFunc, false, opals::String >, Cons<
40  ILeaf< Names::feature, false, opals::Vector<opals::GridFeature::Type> >, Cons<
41  ILeaf< Names::filter, false, opals::String >, Cons<
42  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
43  ILeaf< Names::multiBand, false, bool >, Cons<
44  ILeaf< Names::extrapolationCheck, false, bool >
45  > > > > > > > > > > > > > > > > > Options;
46  }
47  }
48 
49  /// Derives a 2.5D digital elevation models (DEM) in regular grid structure using simple interpolation techniques.
50  /** TODO:
51  More details on opalsGrid */
52  /// \see \ref ModuleGrid
53  class OPALS_API IGrid : virtual public IModuleBase
54  {
55 
56  public:
57  static IGrid* New();
58  static IGrid* New( IControlObject &controlObject );
59  static IGrid* New( const IModuleBase &parent );
60  static IGrid* New( const IModuleBase &parent, IControlObject &controlObject );
61 
62  virtual ~IGrid() {}
63 
64  /// \name Access to module-specific options.
65  ///@{
67  virtual Options& opts() = 0;
68  virtual const Options& opts() const = 0;
69  ///}@
70 
71  };
72 
73 };
74 
75 #endif