Loading [MathJax]/extensions/tex2jax.js
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::_,
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  Options& opts() override = 0;
63  const Options& opts() const override = 0;
64  ///@}
65 
66  };
67 
68 };
A leaf that holds a value.
Definition: IOption.hpp:62
Provides a generic raster algebra calculator featuring mathematical, statistical and conditional oper...
Definition: IAlgebra.hpp:48
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
Abstract base class of all opals modules.
Definition: IModuleBase.hpp:13
Interface for retrieving status and progress information from a module run.
Definition: c++_api/inc/opals/IControlObject.hpp:30
IGroup< Names::_, IValue< Names::inFile, false, Vector< Path > >, IValue< Names::outFile, false, Path >, IValue< Names::oFormat, false, String >, IValue< Names::formula, false, CalculatorWithPythonSupport< DM::ICalculator::ReadAccess::vectors|DM::ICalculator::ReadAccess::rasters, DM::ICalculator::WriteAccess::coordinates|DM::ICalculator::WriteAccess::attributes|DM::ICalculator::WriteAccess::rasters > >, IValue< Names::gridSize, false, Vector< double > >, IValue< Names::noData, false, NoDataType >, IValue< Names::limit, false, MultiGridLimit >, IValue< Names::resampling, false, ResamplingMethod >, IValue< Names::maxMemory, false, unsigned >, IValue< Names::skipVoidAreas, false, bool > > Options
Options of Module Algebra.
Definition: IAlgebra.hpp:40
A group of options.
Definition: IOption.hpp:136