All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ThirdDegreePolynomialGT.h
Go to the documentation of this file.
1 /* Copyright (C) 2008-2013 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/geometry/ThirdDegreePolynomialGT.h
22 
23  \brief Third Degree Polynomial Geometric transformation.
24 */
25 
26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_THIRDDEGREEPOLYNOMIALGT_H
27 #define __TERRALIB_GEOMETRY_INTERNAL_THIRDDEGREEPOLYNOMIALGT_H
28 
29 // TerraLib
30 #include "Config.h"
32 
33 // Boost
34 #include <boost/concept_check.hpp>
35 
36 namespace te
37 {
38  namespace gm
39  {
40  /*!
41  \class ThirdDegreePolynomialGT
42 
43  \brief Third Degree Polynomial Geometric transformation.
44 
45  \note The transformation parameters (inside GTParameters::m_directParameters) are disposed on the following form:
46 
47  \code
48  u = a.x"0.y"0 + b.x"1*y"0 + c.x"0.y"1 + d.x"2.y"0 + e.x"1.y"1 + f.x"0.y"2 + g.x"3.y"0 + h.x"2.y"1 + i.x"1.y"2 + j.x"0.y"3
49  v = k.x"0.y"0 + l.x"1*y"0 + m.x"0.y"1 + n.x"2.y"0 + o.x"1.y"1 + p.x"0.y"2 + q.x"3.y"0 + r.x"2.y"1 + s.x"1.y"2 + t.x"0.y"3
50 
51  GTParameters::m_directParameters = [ a b c d e f g h i j k l m n o p q r s t]
52  \endcode
53  */
55  {
56  public:
57 
58  /*! \brief Default constructor. */
60 
61  /*! \brief Destructor. */
63 
64  const std::string& getName() const;
65 
66  bool isValid( const GTParameters& params ) const;
67 
68  void directMap( const GTParameters& params, const double& pt1X,
69  const double& pt1Y, double& pt2X, double& pt2Y ) const;
70 
71  void inverseMap( const GTParameters& params, const double& pt2X,
72  const double& pt2Y, double& pt1X, double& pt1Y ) const;
73 
74  unsigned int getMinRequiredTiePoints() const;
75 
76  GeometricTransformation* clone() const;
77 
78  protected:
79 
80  bool computeParameters( GTParameters& params ) const;
81  };
82 
83  } // end namespace gm
84 } // end namespace te
85 
86 #endif // __TERRALIB_GEOMETRY_INTERNAL_THIRDDEGREEPOLYNOMIALGT_H
87 
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:114
Third Degree Polynomial Geometric transformation.
Configuration flags for the Vector Geometry Model of TerraLib.
2D Geometric transformation base class.
2D Geometric transformation parameters.
Definition: GTParameters.h:50
2D Geometric transformation base class.