| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Member Functions
TeAffineGT Class Reference
Geometric transformation.

2D affine geometric trasformation. More...

`#include <TeAffineGT.h>`

Inheritance diagram for TeAffineGT:

List of all members.

## Public Member Functions

| TeAffineGT ()
| Default Constructor.
| ~TeAffineGT ()
| Default Destructor.
unsigned int | getMinRequiredTiePoints () const
| Returns the minimum number of required tie-points for the current transformation.

## Static Public Member Functions

static bool | decompose (const TeMatrix &inputMtx, double &translationX, double &translationY, double &scalingFactorX, double &scalingFactorY, double &skew, double &squeeze, double &scaling, double &rotation)
| Returns the basic set of transform parameters given by the decomposition of a given affine transformation matrix.

## Protected Member Functions

void | directMap (const TeGTParams &params, const TeCoord2D &pt1, TeCoord2D &pt2) const
| Direct mapping ( from pt1 space into pt2 space ).
void | inverseMap (const TeGTParams &params, const TeCoord2D &pt2, TeCoord2D &pt1) const
| Inverse mapping ( from pt2 space into pt1 space ).
bool | computeParameters (TeGTParams &params) const
| Calculate the transformation parameters following the new supplied tie-points.
bool | isTransDefined (const TeGTParams &params) const
| Verifies if the supplied parameters already has a defined transformation.

## Detailed Description

2D affine geometric trasformation.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

## Constructor & Destructor Documentation

TeAffineGT::TeAffineGT | ( |  | ) |

Default Constructor.

TeAffineGT::~TeAffineGT | ( |  | ) |

Default Destructor.

## Member Function Documentation

bool TeAffineGT::computeParameters | ( | TeGTParams & | params | ) | const`[protected, virtual]`

Calculate the transformation parameters following the new supplied tie-points.

Parameters:

  params | Transformation parameters.

Returns:
  true if OK, false on errors.

Implements TeGeometricTransformation.

bool TeAffineGT::decompose | ( | const TeMatrix & | inputMtx,
|  | double & | translationX,
|  | double & | translationY,
|  | double & | scalingFactorX,
|  | double & | scalingFactorY,
|  | double & | skew,
|  | double & | squeeze,
|  | double & | scaling,
|  | double & | rotation
| ) |  | `[static]`

Returns the basic set of transform parameters given by the decomposition of a given affine transformation matrix.

Parameters:

  inputMtx | Input affine transformation parameters.
  translationX | X axis translation (combination of a squeeze and scaling).
  translationY | Y axis translation (combination of a squeeze and scaling).
  scalingFactorX | X axis scaling.
  scalingFactorX | Y axis scaling.
  skew | Skew.
  squeeze | Aspect ratio changes.
  scaling | Uniform scaling.
  rotation | Rotation angle (radians).

Returns:
  true if ok, false on errors.

void TeAffineGT::directMap | ( | const TeGTParams & | params,
|  | const TeCoord2D & | pt1,
|  | TeCoord2D & | pt2
| ) |  | const`[protected, virtual]`

Direct mapping ( from pt1 space into pt2 space ).

Parameters:

  params | Transformation parameters.
  pt1 | pt1 coordinate.
  pt2 | pt2 coordinate.

Implements TeGeometricTransformation.

unsigned int TeAffineGT::getMinRequiredTiePoints | ( |  | ) | const`[virtual]`

Returns the minimum number of required tie-points for the current transformation.

Returns:
  The minimum number of required tie-points for the current transformation.

Implements TeGeometricTransformation.

void TeAffineGT::inverseMap | ( | const TeGTParams & | params,
|  | const TeCoord2D & | pt2,
|  | TeCoord2D & | pt1
| ) |  | const`[protected, virtual]`

Inverse mapping ( from pt2 space into pt1 space ).

Parameters:

  params | Transformation parameters.
  pt2 | pt2 coordinate.
  pt1 | pt1 coordinate.

Implements TeGeometricTransformation.

bool TeAffineGT::isTransDefined | ( | const TeGTParams & | params | ) | const`[protected, virtual]`

Verifies if the supplied parameters already has a defined transformation.

Parameters:

  params | Transformation parameters.

Returns:
  true if a transformation is already defined, false otherwise.

Implements TeGeometricTransformation.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeAffineGT.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeAffineGT.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines