org.deegree_impl.model.ct
Class MapProjection.Inverse
java.lang.Object
org.deegree_impl.model.ct.AbstractMathTransform
org.deegree_impl.model.ct.AbstractMathTransform.Inverse
org.deegree_impl.model.ct.MapProjection.Inverse
- All Implemented Interfaces:
- MathTransform, MathTransform2D
- Enclosing class:
- MapProjection
- private final class MapProjection.Inverse
- extends AbstractMathTransform.Inverse
- implements MathTransform2D
Inverse of a map projection.
- Version:
- 1.0
- Author:
- Martin Desruisseaux
Method Summary |
java.awt.Shape |
createTransformedShape(java.awt.Shape shape)
Transform the specified shape. |
void |
transform(double[] source,
int srcOffset,
double[] dest,
int dstOffset,
int length)
Transforms a list of coordinate point ordinal values.
|
void |
transform(float[] source,
int srcOffset,
float[] dest,
int dstOffset,
int length)
Transforms a list of coordinate point ordinal values.
|
java.awt.geom.Point2D |
transform(java.awt.geom.Point2D source,
java.awt.geom.Point2D dest)
Transforms the specified ptSrc and stores the result in ptDst .
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MapProjection.Inverse
public MapProjection.Inverse()
transform
public java.awt.geom.Point2D transform(java.awt.geom.Point2D source,
java.awt.geom.Point2D dest)
throws TransformException
- Description copied from interface:
MathTransform2D
- Transforms the specified
ptSrc
and stores the result in ptDst
.
If ptDst
is null
, a new Point2D
object is allocated
and then the result of the transformation is stored in this object. In either case,
ptDst
, which contains the transformed point, is returned for convenience.
If ptSrc
and ptDst
are the same object, the input point is
correctly overwritten with the transformed point.
- Specified by:
transform
in interface MathTransform2D
- Overrides:
transform
in class AbstractMathTransform
- Parameters:
source
- the specified coordinate point to be transformed.dest
- 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)
transform
public void transform(double[] source,
int srcOffset,
double[] dest,
int dstOffset,
int length)
throws TransformException
- Description copied from interface:
MathTransform
- Transforms a list of coordinate point ordinal values.
This method is provided for efficiently transforming many points.
The supplied array of ordinal values will contain packed ordinal
values. For example, if the source dimension is 3, then the ordinals
will be packed in this order:
(x0,y0,z0,
x1,y1,z1 ...).
The size of the passed array must be an integer multiple of
MathTransform.getDimSource()
.
- Specified by:
transform
in interface MathTransform
- Parameters:
source
- the array containing the source point coordinates.srcOffset
- the offset to the first point to be transformed
in the source array.dest
- the array into which the transformed point
coordinates are returned. May be the same
than srcPts
.dstOffset
- the offset to the location of the first
transformed point that is stored in the
destination array.length
- the number of point objects to be transformed.
- Throws:
TransformException
- if a point can't be transformed.
transform
public void transform(float[] source,
int srcOffset,
float[] dest,
int dstOffset,
int length)
throws TransformException
- Description copied from interface:
MathTransform
- Transforms a list of coordinate point ordinal values.
This method is provided for efficiently transforming many points.
The supplied array of ordinal values will contain packed ordinal
values. For example, if the source dimension is 3, then the ordinals
will be packed in this order:
(x0,y0,z0,
x1,y1,z1 ...).
The size of the passed array must be an integer multiple of
MathTransform.getDimSource()
.
- Specified by:
transform
in interface MathTransform
- Overrides:
transform
in class AbstractMathTransform
- Throws:
TransformException
createTransformedShape
public java.awt.Shape createTransformedShape(java.awt.Shape shape)
throws TransformException
- Description copied from interface:
MathTransform2D
- Transform the specified shape. This method may replace straight lines by
quadratic curves when applicable. It may also do the opposite (replace
curves by straight lines). The returned shape doesn't need to have the
same number of points than the original 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)