Class PassThroughTransform2D
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.transform.AbstractMathTransform
org.apache.sis.referencing.operation.transform.PassThroughTransform
org.apache.sis.referencing.operation.transform.PassThroughTransform2D
- All Implemented Interfaces:
Serializable,Parameterized,LenientComparable,org.opengis.referencing.operation.MathTransform,org.opengis.referencing.operation.MathTransform2D
final class PassThroughTransform2D
extends PassThroughTransform
implements org.opengis.referencing.operation.MathTransform2D
A pass-through transform in the two-dimensional case.
- Since:
- 0.5
- Version:
- 0.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
AbstractMathTransform.Inverse -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerial number for inter-operability with different versions.Fields inherited from class org.apache.sis.referencing.operation.transform.PassThroughTransform
firstAffectedCoordinate, inverse, numTrailingCoordinates, subTransformFields inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
MAXIMUM_BUFFER_SIZE, MAXIMUM_FAILURES -
Constructor Summary
ConstructorsConstructorDescriptionPassThroughTransform2D(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates) Creates a pass through transform. -
Method Summary
Modifier and TypeMethodDescriptioncreateTransformedShape(Shape shape) Transforms the specified shape.org.opengis.referencing.operation.Matrixderivative(Point2D point) Gets the derivative of this transform at a point.org.opengis.referencing.operation.MathTransform2Dinverse()Creates the inverse transform of this object.Transforms the specifiedptSrcand stores the result inptDst.Methods inherited from class org.apache.sis.referencing.operation.transform.PassThroughTransform
computeHashCode, create, derivative, equals, formatTo, getModifiedCoordinates, getSourceDimensions, getSubTransform, getTargetDimensions, isIdentity, transform, transform, transform, transform, transform, tryConcatenateMethods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
beforeFormat, equals, getContextualParameters, getDomain, getParameterDescriptors, getParameterValues, hashCode, isInverseEquals, mismatchedDimension, transformMethods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKTMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.referencing.operation.MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transform
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
-
Constructor Details
-
PassThroughTransform2D
PassThroughTransform2D(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates) Creates a pass through transform.- Parameters:
firstAffectedCoordinate- index of the first affected coordinate.subTransform- the sub transform.numTrailingCoordinates- number of trailing coordinates to pass through.
-
-
Method Details
-
transform
public Point2D transform(Point2D ptSrc, Point2D ptDst) throws org.opengis.referencing.operation.TransformException Transforms the specifiedptSrcand stores the result inptDst. Implementation is similar but not identical toAbstractMathTransform2D.transform(Point2D, Point2D). The difference is in thetransform(…)method invoked.- Specified by:
transformin interfaceorg.opengis.referencing.operation.MathTransform2D- Throws:
org.opengis.referencing.operation.TransformException
-
createTransformedShape
public Shape createTransformedShape(Shape shape) throws org.opengis.referencing.operation.TransformException Transforms the specified shape.- Specified by:
createTransformedShapein interfaceorg.opengis.referencing.operation.MathTransform2D- Throws:
org.opengis.referencing.operation.TransformException
-
derivative
public org.opengis.referencing.operation.Matrix derivative(Point2D point) throws org.opengis.referencing.operation.TransformException Gets the derivative of this transform at a point.- Specified by:
derivativein interfaceorg.opengis.referencing.operation.MathTransform2D- Returns:
- Throws:
org.opengis.referencing.operation.TransformException- if the sub-transform failed.
-
inverse
public org.opengis.referencing.operation.MathTransform2D inverse() throws org.opengis.referencing.operation.NoninvertibleTransformExceptionCreates the inverse transform of this object.- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform2D- Overrides:
inversein classPassThroughTransform- Returns:
- Throws:
org.opengis.referencing.operation.NoninvertibleTransformException- if the sub-transform is not invertible.
-