| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.csct.ct.AbstractMathTransform
org.deegree.model.csct.ct.PassThroughTransform
final class PassThroughTransform
Transform which passes through a subset of ordinates to another transform. This allows transforms to operate on a subset of ordinates. For example, if you have (latitude,longitude,height) coordinates, then you may wish to convert the height values from feet to meters without affecting the latitude and longitude values.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.deegree.model.csct.ct.AbstractMathTransform | 
|---|
AbstractMathTransform.Inverse | 
| Field Summary | |
|---|---|
protected  int | 
firstAffectedOrdinate
Index of the first affected ordinate.  | 
protected  int | 
numTrailingOrdinates
Number of unaffected ordinates after the affected ones.  | 
protected  MathTransform | 
transform
The sub transform.  | 
| Constructor Summary | |
|---|---|
PassThroughTransform(int firstAffectedOrdinate,
                                         MathTransform transform,
                                         int numTrailingOrdinates)
Create a pass through transform.  | 
|
| Method Summary | |
|---|---|
 Matrix | 
derivative(CoordinatePoint point)
Gets the derivative of this transform at a point.  | 
 boolean | 
equals(Object object)
Compares the specified object with this math transform for equality.  | 
 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.  | 
 boolean | 
isIdentity()
Tests whether this transform does not move any points.  | 
 String | 
toString()
Returns the WKT for this math transform.  | 
 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.AbstractMathTransform | 
|---|
addParameter, addParameter, createTransformedShape, createTransformedShape, derivative, getName, hashCode, paramMT, transform, transform | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected final int firstAffectedOrdinate
protected final int numTrailingOrdinates
protected final MathTransform transform
| Constructor Detail | 
|---|
public PassThroughTransform(int firstAffectedOrdinate,
                            MathTransform transform,
                            int numTrailingOrdinates)
firstAffectedOrdinate - Index of the first affected ordinate.transform - The sub transform.numTrailingOrdinates - Number of trailing ordinates to pass through.
        Affected ordinates will range from firstAffectedOrdinate
        inclusive to dimTarget-numTrailingOrdinates exclusive.| Method Detail | 
|---|
public int getDimSource()
getDimSource in interface MathTransformpublic int getDimTarget()
getDimTarget in interface MathTransformpublic boolean isIdentity()
isIdentity in interface MathTransformtrue if this MathTransform is an identity transform;
         false otherwise.
public void transform(float[] srcPts,
                      int srcOff,
                      float[] dstPts,
                      int dstOff,
                      int numPts)
               throws TransformException
transform in interface MathTransformtransform in class AbstractMathTransformsrcPts - 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.
TransformException - if a point can't be transformed.
public void transform(double[] srcPts,
                      int srcOff,
                      double[] dstPts,
                      int dstOff,
                      int numPts)
               throws TransformException
transform in interface MathTransformsrcPts - 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.
TransformException - if a point can't be transformed.
public Matrix derivative(CoordinatePoint point)
                  throws TransformException
derivative in interface MathTransformderivative in class AbstractMathTransformpoint - The coordinate point where to evaluate the derivative.
null).
TransformException - if the derivative can't be evaluated at the specified point.
public MathTransform inverse()
                      throws NoninvertibleTransformException
inverse in interface MathTransforminverse in class AbstractMathTransformNoninvertibleTransformException - if the transform can't be inversed.public boolean equals(Object object)
equals in class AbstractMathTransformpublic String toString()
toString in class AbstractMathTransform
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net