Class AbstractMathTransform2D.Inverse
- All Implemented Interfaces:
Parameterized, LenientComparable, Printable, MathTransform, MathTransform2D
- Enclosing class:
AbstractMathTransform2D
protected abstract static class AbstractMathTransform2D.Inverse
extends AbstractMathTransform.Inverse
implements MathTransform2D
Base class for implementation of inverse math transforms.
This inner class is the inverse of the enclosing
AbstractMathTransform2D.
Serialization
This object may or may not be serializable, at implementation choices. Most Apache SIS implementations are serializable, but the serialized objects are not guaranteed to be compatible with future SIS versions. Serialization should be used only for short term storage or RMI between applications running the same SIS version.- Since:
- 0.5
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMathTransform
AbstractMathTransform.InverseModifier and TypeClassDescriptionprotected static classBase class for implementations of inverse math transforms. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTransformedShape(Shape shape) Transforms the specified shape.derivative(Point2D point) Gets the derivative of this transform at a point.abstract MathTransform2Dinverse()Returns the inverse of this math transform.Transforms the specifiedptSrcand stores the result inptDst.Methods inherited from class AbstractMathTransform.Inverse
computeHashCode, derivative, equals, formatTo, getDomain, getSourceDimensions, getTargetDimensions, isIdentityModifier and TypeMethodDescriptionprotected intComputes a hash value for this transform.derivative(DirectPosition point) Gets the derivative of this transform at a point.booleanequals(Object object, ComparisonMode mode) Compares the specified object with this inverse math transform for equality.protected StringFormats the inner part of a Well Known Text version 1 (WKT 1) element.getDomain(DomainDefinition criteria) Returns the ranges of coordinate values which can be used as inputs.intGets the dimension of input points.intGets the dimension of output points.booleanTests whether this transform does not move any points.Methods inherited from class AbstractMathTransform
equals, getContextualParameters, getParameterDescriptors, getParameterValues, getStandardType, hashCode, transform, transform, transform, transform, transform, transform, tryConcatenateModifier and TypeMethodDescriptionfinal booleanCompares the specified object with this math transform for strict equality.protected ContextualParametersReturns the parameters for a sequence of normalize →this→ denormalize transforms (optional operation).Returns the parameter descriptors for this math transform, ornullif unknown.Returns the parameter values for this math transform, ornullif unknown.final TypeReturns the class that defines the public properties of this instance.final intReturns a hash value for this transform.abstract Matrixtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) Transforms a single coordinate tuple in an array, and optionally computes the transform derivative at that location.voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate tuples.transform(DirectPosition ptSrc, DirectPosition ptDst) Transforms the specifiedptSrcand stores the result inptDst.protected voidtryConcatenate(TransformJoiner context) Concatenates in an optimized way this math transform with its neighbor, if possible.Methods inherited from class FormattableObject
print, toString, toString, toWKTModifier and TypeMethodDescriptionvoidprint()Prints a string representation of this object to the standard output stream.Returns a Well Known Text (WKT) or an alternative text representation for this object.toString(Convention convention) Returns a Well Known Text (WKT) for this object using the specified convention.toWKT()Returns a strictly compliant Well Known Text (WKT) using the default convention, symbols and indentation.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface MathTransform
toWKT
-
Constructor Details
-
Inverse
protected Inverse()Constructs an inverse math transform.
-
-
Method Details
-
inverse
Returns the inverse of this math transform. The returned transform should be the enclosing math transform.- Specified by:
inversein interfaceMathTransform- Specified by:
inversein interfaceMathTransform2D- Specified by:
inversein classAbstractMathTransform.Inverse- Returns:
- the inverse of this transform.
-
transform
Transforms the specifiedptSrcand stores the result inptDst. The default implementation invokesAbstractMathTransform.transform(double[], int, double[], int, boolean)using a temporary array of doubles.- Specified by:
transformin interfaceMathTransform2D- Parameters:
ptSrc- the coordinate tuple to be transformed.ptDst- the coordinate tuple that stores the result of transformingptSrc, ornullif a new point shall be created.- Returns:
- the coordinate tuple after transforming
ptSrcand storing the result inptDst, or in a new point ifptDstwas null. - Throws:
TransformException- if the point cannot be transformed.- See Also:
-
createTransformedShape
Transforms the specified shape. The default implementation computes quadratic curves using three points for each line segment in the shape. The returned object is often aPath2D, but may also be aLine2Dor aQuadCurve2Dif such simplification is possible.- Specified by:
createTransformedShapein interfaceMathTransform2D- Parameters:
shape- shape to transform.- Returns:
- transformed shape, or
shapeif this transform is the identity transform. - Throws:
TransformException- if a transform failed.
-
derivative
Gets the derivative of this transform at a point. The default implementation performs the following steps:- Copy the coordinates in a temporary array and pass that array to the
AbstractMathTransform.transform(double[], int, double[], int, boolean)method, with thederivateboolean argument set totrue. - If the latter method returned a non-null matrix, returns that matrix.
Otherwise throws
TransformException.
- Specified by:
derivativein interfaceMathTransform2D- Parameters:
point- the coordinate tuple where to evaluate the derivative.- Returns:
- the derivative at the specified point as a 2×2 matrix.
- Throws:
TransformException- if the derivative cannot be evaluated at the specified point.
- Copy the coordinates in a temporary array and pass that array to the
-