IIsolines.hpp
1 #ifndef OPALS_IISOLINES_HPP_INCLUDED
2 #define OPALS_IISOLINES_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, "opalsIsolines_d.lib")
9  #else
10  #pragma comment(lib, "opalsIsolines.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/Array.hpp>
17 
19 
20 namespace opals {
21 
22  namespace opts
23  {
24  namespace Isolines
25  {
26  /// Options of \ref ModuleIsolines
27  typedef IGroup< Names::_, false, Cons<
28  ILeaf< Names::inFile, false, opals::Path >, Cons<
29  ILeaf< Names::outFile, false, opals::Path >, Cons<
30  ILeaf< Names::oFormat, false, opals::String >, Cons<
31  ILeaf< Names::band, false, unsigned >, Cons<
32  ILeaf< Names::interval, false, double >, Cons<
33  ILeaf< Names::levels, false, opals::Vector<double> >, Cons<
34  ILeaf< Names::zRange, false, ArrayD2 >, Cons<
35  ILeaf< Names::thinOut, false, double >, Cons<
36  ILeaf< Names::closeMin, false, double >, Cons<
37  ILeaf< Names::minLength, false, double >, Cons<
38  ILeaf< Names::densification, false, bool >
39  > > > > > > > > > > > > Options;
40  }
41  }
42 
43  /// Derives contour lines (isolines) from grid models and stores them as a vector dataset.
44  /** TODO:
45  More details on opalsIsolines with much more words,
46  possibly on several lines. */
47  /// \see \ref ModuleIsolines
48  class OPALS_API IIsolines : virtual public IModuleBase
49  {
50 
51  public:
52  static IIsolines* New();
53  static IIsolines* New( IControlObject &controlObject );
54  static IIsolines* New( const IModuleBase &parent );
55  static IIsolines* New( const IModuleBase &parent, IControlObject &controlObject );
56 
57  virtual ~IIsolines() {}
58 
59  /// \name Access to module-specific options.
60  ///@{
62  virtual Options& opts() = 0;
63  virtual const Options& opts() const = 0;
64  ///}@
65 
66  };
67 
68 };
69 
70 #endif