deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.ct
Class AffineTransform2D

java.lang.Object
  extended by java.awt.geom.AffineTransform
      extended by org.deegree.model.csct.resources.XAffineTransform
          extended by org.deegree.model.csct.ct.AffineTransform2D
All Implemented Interfaces:
Serializable, Cloneable, MathTransform, MathTransform2D

final class AffineTransform2D
extends XAffineTransform
implements MathTransform2D

Transforms two-dimensional coordinate points using an AffineTransform.

Version:
1.00
Author:
Martin Desruisseaux

Field Summary
 
Fields inherited from class java.awt.geom.AffineTransform
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE
 
Constructor Summary
protected AffineTransform2D(AffineTransform transform)
          Construct an affine transform.
 
Method Summary
protected  void checkPermission()
          Throws an UnsupportedOperationException when a mutable method is invoked, since AffineTransform2D must be immutable.
 Matrix derivative(CoordinatePoint point)
          Gets the derivative of this transform at a point.
 Matrix derivative(Point2D point)
          Gets the derivative of this transform at a point.
 int getDimSource()
          Gets the dimension of input points.
 int getDimTarget()
          Gets the dimension of output points.
 MathTransform inverse()
          Creates the inverse transform of this object.
 String toString()
          Returns the WKT for this affine transform.
 CoordinatePoint transform(CoordinatePoint ptSrc, CoordinatePoint ptDst)
          Transforms the specified ptSrc and stores the result in ptDst.
 
Methods inherited from class org.deegree.model.csct.resources.XAffineTransform
concatenate, getScaleInstance, getScaleX0, getScaleY0, inverseDeltaTransform, inverseTransform, preConcatenate, rotate, rotate, round, scale, setToIdentity, setToRotation, setToRotation, setToScale, setToShear, setToTranslation, setTransform, setTransform, shear, transform, translate
 
Methods inherited from class java.awt.geom.AffineTransform
clone, createInverse, createTransformedShape, deltaTransform, deltaTransform, equals, getDeterminant, getMatrix, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, inverseTransform, inverseTransform, isIdentity, transform, transform, transform, transform, transform, transform
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.model.csct.ct.MathTransform2D
createTransformedShape, transform
 
Methods inherited from interface org.deegree.model.csct.ct.MathTransform
isIdentity, transform, transform
 

Constructor Detail

AffineTransform2D

protected AffineTransform2D(AffineTransform transform)
Construct an affine transform.

Method Detail

checkPermission

protected void checkPermission()
Throws an UnsupportedOperationException when a mutable method is invoked, since AffineTransform2D must be immutable.

Specified by:
checkPermission in class XAffineTransform

getDimSource

public int getDimSource()
Gets the dimension of input points.

Specified by:
getDimSource in interface MathTransform
Returns:
the dimension of input points.
See Also:
"org.opengis.ct.CT_MathTransform#getDimSource()"

getDimTarget

public int getDimTarget()
Gets the dimension of output points.

Specified by:
getDimTarget in interface MathTransform
Returns:
the dimension of output points.
See Also:
"org.opengis.ct.CT_MathTransform#getDimTarget()"

transform

public CoordinatePoint transform(CoordinatePoint ptSrc,
                                 CoordinatePoint ptDst)
Transforms the specified ptSrc and stores the result in ptDst.

Specified by:
transform in interface MathTransform
Parameters:
ptSrc - the specified coordinate point to be transformed.
ptDst - the specified coordinate point that stores the result of transforming ptSrc, or null.
Returns:
the coordinate point after transforming ptSrc and storing the result in ptDst, or a newly created point if ptDst was null.

derivative

public Matrix derivative(Point2D point)
Gets the derivative of this transform at a point. For an affine transform, the derivative is the same everywhere.

Specified by:
derivative in interface MathTransform2D
Parameters:
point - The coordinate point where to evaluate the derivative. Null value is accepted only if the derivative is the same everywhere. For example affine transform accept null value since they produces identical derivative no matter the coordinate value. But most map projection will requires a non-null value.
Returns:
The derivative at the specified point as a 2×2 matrix. This method never returns an internal object: changing the matrix will not change the state of this math transform.

derivative

public Matrix derivative(CoordinatePoint point)
Gets the derivative of this transform at a point. For an affine transform, the derivative is the same everywhere.

Specified by:
derivative in interface MathTransform
Parameters:
point - The coordinate point where to evaluate the derivative. Null value is accepted only if the derivative is the same everywhere. For example affine transform accept null value since they produces identical derivative no matter the coordinate value. But most map projection will requires a non-null value.
Returns:
The derivative at the specified point (never null). This method never returns an internal object: changing the matrix will not change the state of this math transform.

inverse

public MathTransform inverse()
                      throws NoninvertibleTransformException
Creates the inverse transform of this object.

Specified by:
inverse in interface MathTransform
Returns:
The inverse transform.
Throws:
NoninvertibleTransformException - if the transform can't be inversed.

toString

public String toString()
Returns the WKT for this affine transform.

Overrides:
toString in class AffineTransform

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net