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 long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.referencing.operation.transform.PassThroughTransform
firstAffectedCoordinate, inverse, numTrailingCoordinates, subTransform
Fields 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.Matrix
derivative
(Point2D point) Gets the derivative of this transform at a point.org.opengis.referencing.operation.MathTransform2D
inverse()
Creates the inverse transform of this object.Transforms the specifiedptSrc
and 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, tryConcatenate
Methods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
beforeFormat, equals, getContextualParameters, getDomain, getParameterDescriptors, getParameterValues, hashCode, isInverseEquals, mismatchedDimension, transform
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 specifiedptSrc
and stores the result inptDst
. Implementation is similar but not identical toAbstractMathTransform2D.transform(Point2D, Point2D)
. The difference is in thetransform(…)
method invoked.- Specified by:
transform
in 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:
createTransformedShape
in 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:
derivative
in 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:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform
- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform2D
- Overrides:
inverse
in classPassThroughTransform
- Returns:
- Throws:
org.opengis.referencing.operation.NoninvertibleTransformException
- if the sub-transform is not invertible.
-