SplineGrassMitasova.h
Go to the documentation of this file.
1 
2 /*!
3 \file terralib/mnt/core/SplineGrassMitasova.h
4 
5 \brief This file contains a class to calculate retangular grid from Samples using Spline Grass Mitasova Interpolation.
6 Adapted from SPRING
7 
8 */
9 
10 #ifndef __TERRALIB_MNT_INTERNAL_SPLINEGRASSMITASOVA_H
11 #define __TERRALIB_MNT_INTERNAL_SPLINEGRASSMITASOVA_H
12 
13 #include "CalculateGrid.h"
14 
15 namespace te
16 {
17  namespace mnt
18  {
19 
21  {
22  public:
23  //! Contructors
24  SplineInterpolationGrassMitasova(int minPoints = mitasovaMINPOINTS, double tension = mitasovaTENSION, double smooth = mitasovaSMOOTH);
25 
26  //! Destructor
28 
29  void setControlPoints(double xMin, double xMax, double yMin, double yMax, int nMax, double xOrigem, double yOrigem, double dnorm);
30 
31  bool calculateGrid();
32 
33  private:
35  double m_tension;
36  double m_smooth;
37 
38  int G_ludcmp(std::vector< std::vector<double> > &, int, std::vector<int> &, double &);
39  void G_lubksb(std::vector< std::vector<double> > &a, int n, std::vector<int> &indx, std::vector<double> &b);
40  double amax1(double arg1, double arg2);
41  double amin1(double arg1, double arg2);
42  double IL_crst(double r, double fi);
43  int IL_matrix_create(std::vector< std::vector<double> > &matrix, std::vector<int> &indx, double fi, double rsm, int KMAX2);
44  bool IL_grid_calc(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, int KMAX2, std::vector<double>& b, double fi, double dnorm);
45  int IL_check_at_points_2d(std::vector<double> &b, double &ertot, double zmin, double dnorm, double fi);
46 
47  std::vector<te::gm::Point> m_pointsRegion; //!< Control Points of grid region
48 
49  }; //class SplineInterpolationGrassMitasova
50  } //mnt
51 } //te
52 
53 #endif
#define TEMNTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:41
#define mitasovaSMOOTH
Definition: CalculateGrid.h:31
std::vector< te::gm::Point > m_pointsRegion
Control Points of grid region.
#define mitasovaMINPOINTS
Definition: CalculateGrid.h:29
URI C++ Library.
This file contains a class to calculate retangular grid from Samples. Adapted from SPRING...
#define mitasovaTENSION
Definition: CalculateGrid.h:30