IVectorize.hpp
1 #ifndef OPALS_IVECTORIZE_HPP_INCLUDED
2 #define OPALS_IVECTORIZE_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, "opalsVectorize_d.lib")
9  #else
10  #pragma comment(lib, "opalsVectorize.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/VectorizationMode.hpp>
17 
18 namespace opals {
19 
20  namespace opts
21  {
22  namespace Vectorize
23  {
24  /// Options of \ref ModuleVectorize
25  typedef IGroup< Names::_, false, Cons<
26  ILeaf< Names::inFile, false, opals::Path >, Cons<
27  ILeaf< Names::outFile, false, opals::Path >, Cons<
28  ILeaf< Names::oFormat, false, opals::String >, Cons<
29  ILeaf< Names::procMode, false, opals::VectorizationMode::Type >, Cons<
30  ILeaf< Names::suppressRungs, false, bool >
31  > > > > > > Options;
32  }
33  }
34 
35  /// Performs raster-to-vector conversion and exports polyline geometries.
36  /** opalsVectorize converts raster content either into polygon or polyline vector topolygy.
37  */
38  /// \see \ref ModuleVectorize
39  class OPALS_API IVectorize : virtual public IModuleBase
40  {
41 
42  public:
43  static IVectorize* New();
44  static IVectorize* New( IControlObject &controlObject );
45  static IVectorize* New( const IModuleBase &parent );
46  static IVectorize* New( const IModuleBase &parent, IControlObject &controlObject );
47 
48  virtual ~IVectorize() {}
49 
50  /// \name Access to module-specific options.
51  ///@{
53  virtual Options& opts() = 0;
54  virtual const Options& opts() const = 0;
55  ///}@
56 
57  };
58 
59 };
60 
61 #endif