org.geotools.ct
Class AbstractMathTransform.Inverse

java.lang.Object
  extended byorg.geotools.ct.AbstractMathTransform
      extended byorg.geotools.ct.AbstractMathTransform.Inverse
All Implemented Interfaces:
MathTransform, java.io.Serializable
Enclosing class:
AbstractMathTransform

protected abstract class AbstractMathTransform.Inverse
extends AbstractMathTransform
implements java.io.Serializable

Default implementation for inverse math transform. This inner class is the inverse of the enclosing MathTransform. It is serializable only if the enclosing math transform is also serializable.

Version:
$Id: AbstractMathTransform.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.geotools.ct.AbstractMathTransform
AbstractMathTransform.Inverse
 
Constructor Summary
AbstractMathTransform.Inverse()
          Construct an inverse math transform.
 
Method Summary
 Matrix derivative(CoordinatePoint point)
          Gets the derivative of this transform at a point.
 Matrix derivative(java.awt.geom.Point2D point)
          Gets the derivative of this transform at a point.
 boolean equals(java.lang.Object object)
          Compares the specified object with this inverse math transform for equality.
 int getDimSource()
          Gets the dimension of input points.
 int getDimTarget()
          Gets the dimension of output points.
 int hashCode()
          Returns a hash code value for this math transform.
 MathTransform inverse()
          Returns the inverse of this math transform, which is the enclosing math transform.
 boolean isIdentity()
          Tests whether this transform does not move any points.
 java.lang.String toString()
          Returns the Well Know Text (WKT) for this inverse math transform.
 
Methods inherited from class org.geotools.ct.AbstractMathTransform
createTransformedShape, fromGeoAPI, getName, transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.ct.MathTransform
transform
 

Constructor Detail

AbstractMathTransform.Inverse

public AbstractMathTransform.Inverse()
Construct an inverse math transform.

Method Detail

getDimSource

public int getDimSource()
Gets the dimension of input points. The default implementation returns the dimension of output points of the enclosing math transform.

Specified by:
getDimSource in interface MathTransform
See Also:
CT_MathTransform.getDimSource()

getDimTarget

public int getDimTarget()
Gets the dimension of output points. The default implementation returns the dimension of input points of the enclosing math transform.

Specified by:
getDimTarget in interface MathTransform
See Also:
CT_MathTransform.getDimTarget()

derivative

public Matrix derivative(java.awt.geom.Point2D point)
                  throws org.opengis.referencing.operation.TransformException
Gets the derivative of this transform at a point. The default implementation compute the inverse of the matrix returned by the enclosing math transform.

Overrides:
derivative in class AbstractMathTransform
Parameters:
point - The coordinate point where to evaluate the derivative.
Returns:
The derivative at the specified point as a 2×2 matrix.
Throws:
org.opengis.referencing.operation.TransformException - if the derivative can't be evaluated at the specified point.
See Also:
MathTransform2D.derivative(Point2D)

derivative

public Matrix derivative(CoordinatePoint point)
                  throws org.opengis.referencing.operation.TransformException
Gets the derivative of this transform at a point. The default implementation compute the inverse of the matrix returned by the enclosing math transform.

Specified by:
derivative in interface MathTransform
Overrides:
derivative in class AbstractMathTransform
Parameters:
point - The coordinate point where to evaluate the derivative.
Returns:
The derivative at the specified point (never null).
Throws:
org.opengis.referencing.operation.TransformException - if the derivative can't be evaluated at the specified point.

inverse

public final MathTransform inverse()
Returns the inverse of this math transform, which is the enclosing math transform. This method is declared final because some implementation assume that the inverse of this is always AbstractMathTransform.this.

Specified by:
inverse in interface MathTransform
Overrides:
inverse in class AbstractMathTransform

isIdentity

public boolean isIdentity()
Tests whether this transform does not move any points. The default implementation delegate this tests to the enclosing math transform.

Specified by:
isIdentity in interface MathTransform
Overrides:
isIdentity in class AbstractMathTransform

hashCode

public int hashCode()
Returns a hash code value for this math transform.

Overrides:
hashCode in class AbstractMathTransform

equals

public boolean equals(java.lang.Object object)
Compares the specified object with this inverse math transform for equality. The default implementation tests if object in an instance of the same class than this, and then test their enclosing math transforms.

Overrides:
equals in class AbstractMathTransform

toString

public java.lang.String toString()
Returns the Well Know Text (WKT) for this inverse math transform.

Overrides:
toString in class AbstractMathTransform


Copyright © GeoTools. All Rights Reserved.