TsGeometricTransformations.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 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 TsGeometricTransformations.h
22 
23  \brief Test suite for Geometric Transformations.
24  */
25 
26 #ifndef __TERRALIB_UNITTEST_GEOMETRY_INTERNAL_GEOMETRICTRANSFORMATIONS_H
27 #define __TERRALIB_UNITTEST_GEOMETRY_INTERNAL_GEOMETRICTRANSFORMATIONS_H
28 
30 
31 // STL
32 //#include <string>
33 //#include <vector>
34 
35 // cppUnit
36 #include <cppunit/extensions/HelperMacros.h>
37 
38 /*!
39  \class TsGeometricTransformations
40 
41  \brief Test suite for Geometric Transformations.
42  */
43 class TsGeometricTransformations : public CPPUNIT_NS::TestFixture
44 {
45 // It registers this class as a Test Suit
47 
48 // It registers the class methods as Test Cases belonging to the suit
55 
57 
58  public:
59 
60 // It sets up context before running the test.
61  void setUp();
62 
63 // It cleann up after the test run.
64  void tearDown();
65 
66  protected:
67 
68  void testTiePoints( const std::vector< te::gm::GTParameters::TiePoint >& tiePoints,
69  const te::gm::GeometricTransformation& transformation,
70  double maxError ) const;
71 
72 // Test Cases:
73 
74  /*! \brief Test Case: RST transformation. */
75  void tcRSTGT();
76 
77  /*! \brief Test Case: Affine transformation. */
78  void tcAffine();
79 
80  /*! \brief Test Case: Affine transformation decompose method. */
81  void tcAffineDecompose();
82 
83  /*! \brief Test Case: Second degree polynomial transformation. */
85 
86  /*! \brief Test Case: Third degree polynomial transformation. */
88 
89  /*! \brief Test Case: Projective transformation. */
90  void tcProjectiveGT();
91 };
92 
93 #endif // __TERRALIB_UNITTEST_GEOMETRY_INTERNAL_GEOMETRY_H
94 
2D Geometric transformation base class.
CPPUNIT_TEST_SUITE(TsGeometricTransformations)
2D Geometric transformation base class.
void tcAffine()
Test Case: Affine transformation.
Test suite for Geometric Transformations.
void tcProjectiveGT()
Test Case: Projective transformation.
void tcThirdDegreePolynomialGT()
Test Case: Third degree polynomial transformation.
void tcSecondDegreePolynomialGT()
Test Case: Second degree polynomial transformation.
void testTiePoints(const std::vector< te::gm::GTParameters::TiePoint > &tiePoints, const te::gm::GeometricTransformation &transformation, double maxError) const
void tcAffineDecompose()
Test Case: Affine transformation decompose method.
void tcRSTGT()
Test Case: RST transformation.