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

org.deegree.model.csct.ct
Class ConcatenedTransformDirect

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
All Implemented Interfaces:
Serializable, MathTransform
Direct Known Subclasses:
ConcatenedTransformDirect2D

 class ConcatenedTransformDirect
extends ConcatenedTransform

Concatened transform where the transfert dimension is the same than source and target dimension. This fact allows some optimizations, the most important one being the possibility to avoid the use of an intermediate buffer.

Version:
1.0
Author:
Martin Desruisseaux

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.model.csct.ct.AbstractMathTransform
AbstractMathTransform.Inverse
 
Field Summary
 
Fields inherited from class org.deegree.model.csct.ct.ConcatenedTransform
transform1, transform2
 
Constructor Summary
ConcatenedTransformDirect(MathTransformFactory provider, MathTransform transform1, MathTransform transform2)
          Construct a concatenated transform.
 
Method Summary
protected  boolean isValid()
          Check if transforms are compatibles with this implementation.
 CoordinatePoint transform(CoordinatePoint ptSrc, CoordinatePoint ptDst)
          Transforms the specified ptSrc and stores the result in ptDst.
 void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
          Transforms a list of coordinate point ordinal values.
 void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
          Transforms a list of coordinate point ordinal values.
 
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, createTransformedShape, derivative, getName, paramMT, transform
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcatenedTransformDirect

public ConcatenedTransformDirect(MathTransformFactory provider,
                                 MathTransform transform1,
                                 MathTransform transform2)
Construct a concatenated transform.

Method Detail

isValid

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

Overrides:
isValid in class ConcatenedTransform

transform

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

Specified by:
transform in interface MathTransform
Overrides:
transform in class ConcatenedTransform
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.
Throws:
TransformException - if the point can't be transformed.

transform

public void transform(double[] srcPts,
                      int srcOff,
                      double[] dstPts,
                      int dstOff,
                      int numPts)
               throws TransformException
Transforms a list of coordinate point ordinal values.

Specified by:
transform in interface MathTransform
Overrides:
transform in class ConcatenedTransform
Parameters:
srcPts - the array containing the source point coordinates.
srcOff - the offset to the first point to be transformed in the source array.
dstPts - the array into which the transformed point coordinates are returned. May be the same than srcPts.
dstOff - the offset to the location of the first transformed point that is stored in the destination array.
numPts - the number of point objects to be transformed.
Throws:
TransformException - if a point can't be transformed.

transform

public void transform(float[] srcPts,
                      int srcOff,
                      float[] dstPts,
                      int dstOff,
                      int numPts)
               throws TransformException
Transforms a list of coordinate point ordinal values.

Specified by:
transform in interface MathTransform
Overrides:
transform in class ConcatenedTransform
Parameters:
srcPts - the array containing the source point coordinates.
srcOff - the offset to the first point to be transformed in the source array.
dstPts - the array into which the transformed point coordinates are returned. May be the same than srcPts.
dstOff - the offset to the location of the first transformed point that is stored in the destination array.
numPts - the number of point objects to be transformed.
Throws:
TransformException - if a point can't be transformed.

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