| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.IdentityTransform
IdentityTransform | public class IdentityTransform extends AbstractMathTransform implements LinearTransform,Serializable(Code) | | The identity transform. The data are only copied without any transformation. This class is
used for identity transform of dimension greater than 2. For 1D and 2D identity transforms,
LinearTransform1D and
java.awt.geom.AffineTransform already provide their
own optimisations.
since: 2.0 version: $Id: IdentityTransform.java 24925 2007-03-27 20:12:08Z jgarnett $ author: Martin Desruisseaux |
Constructor Summary | |
protected | IdentityTransform(int dimension) Constructs an identity transform of the specified dimension. |
Method Summary | |
public static LinearTransform | create(int dimension) Constructs an identity transform of the specified dimension. | public Matrix | derivative(DirectPosition point) Gets the derivative of this transform at a point. | public boolean | equals(Object object) Compares the specified object with
this math transform for equality. | public Matrix | getMatrix() Returns a copy of the identity matrix. | public ParameterDescriptorGroup | getParameterDescriptors() Returns the parameter descriptors for this math transform. | public ParameterValueGroup | getParameterValues() Returns the matrix elements as a group of parameters values. | public int | getSourceDimensions() Gets the dimension of input points. | public int | getTargetDimensions() Gets the dimension of output points. | public int | hashCode() Returns a hash value for this transform. | public MathTransform | inverse() | public boolean | isIdentity() Tests whether this transform does not move any points. | public boolean | isIdentity(double tolerance) Tests whether this transform does not move any points. | public DirectPosition | transform(DirectPosition ptSrc, DirectPosition ptDst) Copies the values from
ptSrc to
ptDst . | public void | transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms an array of floating point coordinates by this transform. | public void | transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms an array of floating point coordinates by this transform. |
IdentityTransform | protected IdentityTransform(int dimension)(Code) | | Constructs an identity transform of the specified dimension.
|
create | public static LinearTransform create(int dimension)(Code) | | Constructs an identity transform of the specified dimension.
|
derivative | public Matrix derivative(DirectPosition point)(Code) | | Gets the derivative of this transform at a point. For an identity transform,
the derivative is the same everywhere.
|
equals | public boolean equals(Object object)(Code) | | Compares the specified object with
this math transform for equality.
|
getMatrix | public Matrix getMatrix()(Code) | | Returns a copy of the identity matrix.
|
getParameterDescriptors | public ParameterDescriptorGroup getParameterDescriptors()(Code) | | Returns the parameter descriptors for this math transform.
|
getParameterValues | public ParameterValueGroup getParameterValues()(Code) | | Returns the matrix elements as a group of parameters values.
A copy of the parameter values for this math transform. |
getSourceDimensions | public int getSourceDimensions()(Code) | | Gets the dimension of input points.
|
getTargetDimensions | public int getTargetDimensions()(Code) | | Gets the dimension of output points.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this transform.
This value need not remain consistent between
different implementations of the same class.
|
inverse | public MathTransform inverse()(Code) | | Returns the inverse transform of this object, which
is this transform itself
|
isIdentity | public boolean isIdentity()(Code) | | Tests whether this transform does not move any points.
This implementation always returns
true .
|
isIdentity | public boolean isIdentity(double tolerance)(Code) | | Tests whether this transform does not move any points.
This implementation always returns
true .
|
transform | public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst)(Code) | | Copies the values from
ptSrc to
ptDst .
Overrides the super-class method for performance reason.
since: 2.2 |
transform | public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code) | | Transforms an array of floating point coordinates by this transform.
|
transform | public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code) | | Transforms an array of floating point coordinates by this transform.
|
Methods inherited from org.geotools.referencing.operation.transform.AbstractMathTransform | MathTransform concatenate(MathTransform other, boolean applyOtherFirst)(Code)(Java Doc) public Shape createTransformedShape(Shape shape) throws TransformException(Code)(Java Doc) final Shape createTransformedShape(Shape shape, AffineTransform preTransform, AffineTransform postTransform, int orientation) throws TransformException(Code)(Java Doc) public Matrix derivative(Point2D point) throws TransformException(Code)(Java Doc) public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) protected String formatWKT(Formatter formatter)(Code)(Java Doc) public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc) public ParameterValueGroup getParameterValues()(Code)(Java Doc) abstract public int getSourceDimensions()(Code)(Java Doc) abstract public int getTargetDimensions()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public MathTransform inverse() throws NoninvertibleTransformException(Code)(Java Doc) static Matrix invert(Matrix matrix) throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) protected static boolean needCopy(int srcOff, int dimSource, int dstOff, int dimTarget, int numPts)(Code)(Java Doc) protected static double rollLongitude(double x)(Code)(Java Doc) static GeneralMatrix toGMatrix(Matrix matrix)(Code)(Java Doc) static XMatrix toXMatrix(Matrix matrix)(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException(Code)(Java Doc) public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc)
|
|
|