IOpenness.hpp
1 #ifndef OPALS_IOPENNESS_HPP_INCLUDED
2 #define OPALS_IOPENNESS_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, "opalsOpenness_d.lib")
9  #else
10  #pragma comment(lib, "opalsOpenness.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/GridLimit.hpp>
17 #include <opals/OpennessFeature.hpp>
18 
19 namespace opals {
20 
21  namespace opts
22  {
23  namespace Openness
24  {
25  /// Options of \ref ModuleOpenness
26  typedef IGroup< Names::_, false, Cons<
27  ILeaf< Names::inFile, false, opals::Path >, Cons<
28  ILeaf< Names::outFile, false, opals::Path >, Cons<
29  ILeaf< Names::oFormat, false, opals::String >, Cons<
30  ILeaf< Names::feature, false, opals::OpennessFeature::Type >, Cons<
31  ILeaf< Names::selMode, false, int >, Cons<
32  ILeaf< Names::kernelSize, false, int >, Cons<
33  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
34  ILeaf< Names::noData, false, float >
35  > > > > > > > > > Options;
36  }
37  }
38 
39  /// Provides a raster map of local viewsheds (i.e. openness) based on a DTM grid model.
40  /** TODO:
41  More details on opalsOpenness with much more words,
42  possibly on several lines. */
43  /// \see \ref ModuleOpenness
44  class OPALS_API IOpenness : virtual public IModuleBase
45  {
46 
47  public:
48  static IOpenness* New();
49  static IOpenness* New( IControlObject &controlObject );
50  static IOpenness* New( const IModuleBase &parent );
51  static IOpenness* New( const IModuleBase &parent, IControlObject &controlObject );
52 
53  virtual ~IOpenness() {}
54 
55  /// \name Access to module-specific options.
56  ///@{
58  virtual Options& opts() = 0;
59  virtual const Options& opts() const = 0;
60  ///}@
61 
62  };
63 
64 };
65 
66 #endif