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

org.deegree.model.csct.ct
Class ConcatenedTransformDirect2D

java.lang.Object
  extended by org.deegree.model.csct.ct.AbstractMathTransform
      extended by org.deegree.model.csct.ct.ConcatenedTransform
          extended by org.deegree.model.csct.ct.ConcatenedTransformDirect
              extended by org.deegree.model.csct.ct.ConcatenedTransformDirect2D
All Implemented Interfaces:
Serializable, MathTransform, MathTransform2D

final class ConcatenedTransformDirect2D
extends ConcatenedTransformDirect
implements MathTransform2D

Concatened transform where both transforms are two-dimensional.

Version:
1.0
Author:
Martin Desruisseaux

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.model.csct.ct.AbstractMathTransform
AbstractMathTransform.Inverse
 
Constructor Summary
ConcatenedTransformDirect2D(MathTransformFactory provider, MathTransform2D transform1, MathTransform2D transform2)
          Construct a concatenated transform.
 
Method Summary
 Shape createTransformedShape(Shape shape)
          Transform the specified shape.
 Matrix derivative(Point2D point)
          Gets the derivative of this transform at a point.
protected  boolean isValid()
          Check if transforms are compatibles with this implementation.
 Point2D transform(Point2D ptSrc, Point2D ptDst)
          Transforms the specified ptSrc and stores the result in ptDst.
 
Methods inherited from class org.deegree.model.csct.ct.ConcatenedTransformDirect
transform, transform, transform
 
Methods inherited from class org.deegree.model.csct.ct.ConcatenedTransform
derivative, equals, getDimSource, getDimTarget, hashCode, inverse, isIdentity, toString
 
Methods inherited from class org.deegree.model.csct.ct.AbstractMathTransform
addParameter, addParameter, createTransformedShape, getName, paramMT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.model.csct.ct.MathTransform
derivative, getDimSource, getDimTarget, inverse, isIdentity, transform, transform, transform
 

Constructor Detail

ConcatenedTransformDirect2D

public ConcatenedTransformDirect2D(MathTransformFactory provider,
                                   MathTransform2D transform1,
                                   MathTransform2D transform2)
Construct a concatenated transform.

Method Detail

isValid

protected boolean isValid()
Check if transforms are compatibles with this implementation.

Overrides:
isValid in class ConcatenedTransformDirect

transform

public Point2D transform(Point2D ptSrc,
                         Point2D ptDst)
                  throws TransformException
Transforms the specified ptSrc and stores the result in ptDst.

Specified by:
transform in interface MathTransform2D
Overrides:
transform in class AbstractMathTransform
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 stroring the result in ptDst.
Throws:
TransformException - if the point can't be transformed.
See Also:
MathTransform2D.transform(Point2D,Point2D)

createTransformedShape

public Shape createTransformedShape(Shape shape)
                             throws TransformException
Transform the specified shape.

Specified by:
createTransformedShape in interface MathTransform2D
Overrides:
createTransformedShape in class AbstractMathTransform
Parameters:
shape - Shape to transform.
Returns:
Transformed shape, or shape if this transform is the identity transform.
Throws:
TransformException - if a transform failed.
See Also:
MathTransform2D.createTransformedShape(Shape)

derivative

public Matrix derivative(Point2D point)
                  throws TransformException
Gets the derivative of this transform at a point.

Specified by:
derivative in interface MathTransform2D
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:
TransformException - if the derivative can't be evaluated at the specified point.
See Also:
MathTransform2D.derivative(Point2D)

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