|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractMathTransform
AbstractMathTransform2D
@ThreadSafe public abstract class AbstractMathTransform2D
Base class for math transforms that are known to be two-dimensional in all cases. Two-dimensional math transforms are not required to extend this class, however doing so may simplify their implementation.
| referencing/geotk-referencing (download) | View source code for this class |
| Nested Class Summary | |
|---|---|
protected class |
AbstractMathTransform2D.Inverse
Default implementation for inverse math transform. |
protected static class |
AbstractMathTransform2D.Parameters
The parameters of the enclosing transform as a tuple of (normalize – non-linear kernel – denormalize) transforms. |
| Field Summary |
|---|
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Constructor Summary | |
|---|---|
protected |
AbstractMathTransform2D()
Constructs a default math transform. |
| Method Summary | |
|---|---|
ParameterDescriptorGroup |
getParameterDescriptors()
Returns the parameter descriptors for this math transform, or null if unknown. |
int |
getSourceDimensions()
Returns the dimension of input points, which is always 2. |
int |
getTargetDimensions()
Returns the dimension of output points, which is always 2. |
protected AbstractMathTransform2D.Parameters |
getUnmarshalledParameters()
Returns the parameters of this transform as a tuple of (normalize – non-linear kernel – denormalize) transforms. |
MathTransform2D |
inverse()
Returns the inverse transform of this object. |
Point2D |
transform(Point2D ptSrc,
Point2D ptDst)
Transforms the specified ptSrc and stores the result in ptDst. |
| Methods inherited from class AbstractMathTransform |
|---|
computeHashCode, createTransformedShape, derivative, derivative, ensureNonNull, equals, equals, formatWKT, getName, getParameterValues, hashCode, isIdentity, rollLongitude, transform, transform, transform, transform, transform, transform |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface MathTransform2D |
|---|
createTransformedShape, derivative |
| Methods inherited from interface MathTransform |
|---|
derivative, isIdentity, toWKT, transform, transform, transform, transform, transform |
| Constructor Detail |
|---|
protected AbstractMathTransform2D()
| Method Detail |
|---|
public final int getSourceDimensions()
getSourceDimensions in interface MathTransformgetSourceDimensions in class AbstractMathTransformpublic final int getTargetDimensions()
getTargetDimensions in interface MathTransformgetTargetDimensions in class AbstractMathTransform
public Point2D transform(Point2D ptSrc,
Point2D ptDst)
throws TransformException
ptSrc and stores the result in ptDst.
The default implementation invokes AbstractMathTransform.transform(double[],int,double[],int)
using a temporary array of doubles.
transform in interface MathTransform2Dtransform in class AbstractMathTransformptSrc - The coordinate point to be transformed.ptDst - The coordinate point that stores the result of transforming ptSrc,
or null if a new point should be created.
ptSrc and storing the result in
ptDst, or in a new point if ptDst was null.
TransformException - If the point can't be transformed.MathTransform2D.transform(Point2D,Point2D)
public MathTransform2D inverse()
throws NoninvertibleTransformException
this if this transform is an identity transform, and throws
a NoninvertibleTransformException otherwise. Subclasses should override
this method.
inverse in interface MathTransforminverse in interface MathTransform2Dinverse in class AbstractMathTransformNoninvertibleTransformExceptionpublic ParameterDescriptorGroup getParameterDescriptors()
null if unknown.
The default implementation returns the descriptor associated to the object returned
by getUnmarshalledParameters() if there is one, or null otherwise.
getParameterDescriptors in interface ParameterizedgetParameterDescriptors in class AbstractMathTransformnull.OperationMethod.getParameters()protected AbstractMathTransform2D.Parameters getUnmarshalledParameters()
null in all case, which means that there is no such tuple.
This method is used mostly for Geotk implementation of map projections. Most users should consider this method as internal to Geotk mechanic.
null if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||