org.deegree.model.csct.ct
Class ConcatenedTransformDirect
java.lang.Object
org.deegree.model.csct.ct.AbstractMathTransform
org.deegree.model.csct.ct.ConcatenedTransform
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
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. |
ConcatenedTransformDirect
public ConcatenedTransformDirect(MathTransformFactory provider,
MathTransform transform1,
MathTransform transform2)
- Construct a concatenated transform.
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.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net