IAlgebra.hpp
1 #pragma once
2 
3 #include <opals/IModuleBase.hpp>
4 #include <opals/ResamplingMethod.hpp>
5 #include <opals/MultiGridLimit.hpp>
6 #include <opals/Calculator.hpp>
7 #include <opals/String.hpp>
8 #include <opals/Path.hpp>
9 #include <opals/Vector.hpp>
10 #include <opals/NoDataType.hpp>
11 
12 #if defined(_MSC_VER) && !defined(OPALS_NO_AUTOLINK)
13  #if defined _DEBUG && !defined OPALS_NO_DEBUG
14  #pragma comment(lib, "opalsAlgebra_d.lib")
15  #else
16  #pragma comment(lib, "opalsAlgebra.lib")
17  #endif
18 #endif
19 
20 namespace opals {
21 
22  namespace opts
23  {
24  /// Options of \ref ModuleAlgebra
25  namespace Algebra
26  {
27  /// Options of \ref ModuleAlgebra
28  using Options =
29  IGroup< Names::_, false,
40  >;
41  }
42  }
43 
44  /// Provides a generic raster algebra calculator featuring mathematical, statistical and conditional operators.
45  /** Multiple input rasters are combined by means of a generic, user defined formula
46  If necessary, automatical resampling (nearest, bilinear, bicubic) is performed on the fly */
47  /// \see \ref ModuleAlgebra
48  class OPALS_API IAlgebra : virtual public IModuleBase
49  {
50 
51  public:
52  static IAlgebra* New();
53  static IAlgebra* New( IControlObject &controlObject );
54  static IAlgebra* New( const IModuleBase &parent );
55  static IAlgebra* New( const IModuleBase &parent, IControlObject &controlObject );
56 
57  virtual ~IAlgebra() {}
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 };
Provides a generic raster algebra calculator featuring mathematical, statistical and conditional oper...
Definition: IAlgebra.hpp:48
Leaf that holds a read-only value.
Definition: IOption.hpp:63
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
Abstract base class of all opals modules.
Definition: IModuleBase.hpp:13
IGroup< Names::_, false, ILeaf< Names::inFile, false, Vector< Path > >, ILeaf< Names::outFile, false, Path >, ILeaf< Names::oFormat, false, String >, ILeaf< Names::formula, false, CalculatorWithPythonSupport< DM::ICalculator::ReadAccess::vectors|DM::ICalculator::ReadAccess::rasters, DM::ICalculator::WriteAccess::coordinates|DM::ICalculator::WriteAccess::attributes|DM::ICalculator::WriteAccess::rasters > >, ILeaf< Names::gridSize, false, Vector< double > >, ILeaf< Names::noData, false, NoDataType >, ILeaf< Names::limit, false, MultiGridLimit >, ILeaf< Names::resampling, false, ResamplingMethod >, ILeaf< Names::maxMemory, false, unsigned >, ILeaf< Names::skipVoidAreas, false, bool > > Options
Options of Module Algebra.
Definition: IAlgebra.hpp:40
Interface for retrieving status and progress information from a module run.
Definition: c++_api/inc/opals/IControlObject.hpp:30
A group of options.
Definition: IOption.hpp:108