| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.ConcatenatedTransform
All known Subclasses: org.geotools.referencing.operation.transform.ConcatenatedTransformDirect, org.geotools.referencing.operation.transform.ConcatenatedTransform1D, org.geotools.referencing.operation.transform.ConcatenatedTransform2D,
ConcatenatedTransform | public class ConcatenatedTransform extends AbstractMathTransform implements Serializable(Code) | | Base class for concatenated transform. Concatenated transforms are
serializable if all their step transforms are serializables.
since: 2.0 version: $Id: ConcatenatedTransform.java 24925 2007-03-27 20:12:08Z jgarnett $ author: Martin Desruisseaux |
Field Summary | |
final public MathTransform | transform1 The first math transform. | final public MathTransform | transform2 The second math transform. |
Constructor Summary | |
protected | ConcatenatedTransform(MathTransform transform1, MathTransform transform2) Constructs a concatenated transform. |
Method Summary | |
public static MathTransform | create(MathTransform tr1, MathTransform tr2) Constructs a concatenated transform. | static ConcatenatedTransform | createConcatenatedTransform(MathTransform tr1, MathTransform tr2) Continue the construction started by
ConcatenatedTransform.create . | public Matrix | derivative(Point2D point) Gets the derivative of this transform at a point. | public Matrix | derivative(DirectPosition point) Gets the derivative of this transform at a point.
Parameters: point - The coordinate point where to evaluate the derivative. | final public boolean | equals(Object object) Compares the specified object with
this math transform for equality. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | final public int | getSourceDimensions() Gets the dimension of input points. | final public int | getTargetDimensions() Gets the dimension of output points. | final public int | hashCode() Returns a hash value for this transform. | final public synchronized MathTransform | inverse() Creates the inverse transform of this object. | final public boolean | isIdentity() Tests whether this transform does not move any points.
Default implementation check if the two transforms are
identity. | boolean | isValid() Check if transforms are compatibles. | public DirectPosition | transform(DirectPosition ptSrc, DirectPosition ptDst) Transforms the specified
ptSrc and stores the result in
ptDst . | public void | transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. | public void | transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. |
transform1 | final public MathTransform transform1(Code) | | The first math transform.
|
transform2 | final public MathTransform transform2(Code) | | The second math transform.
|
ConcatenatedTransform | protected ConcatenatedTransform(MathTransform transform1, MathTransform transform2)(Code) | | Constructs a concatenated transform. This constructor is for subclasses only. To
create a concatenated transform, use the factory method
ConcatenatedTransform.create instead.
Parameters: transform1 - The first math transform. Parameters: transform2 - The second math transform. |
create | public static MathTransform create(MathTransform tr1, MathTransform tr2)(Code) | | Constructs a concatenated transform. This factory method checks for step transforms
dimension. The returned transform will implements
MathTransform2D if source and
target dimensions are equal to 2. Likewise, it will implements
MathTransform1D if source and target dimensions are equal to 1.
MathTransform implementations
are available in two version: direct and non-direct. The "non-direct" version use an
intermediate buffer when performing transformations; they are slower and consume more
memory. They are used only as a fallback when a "direct" version can't be created.
Parameters: tr1 - The first math transform. Parameters: tr2 - The second math transform. The concatenated transform. |
derivative | public Matrix derivative(DirectPosition point) throws TransformException(Code) | | Gets the derivative of this transform at a point.
Parameters: point - The coordinate point where to evaluate the derivative. The derivative at the specified point (never null ). throws: TransformException - if the derivative can't be evaluated at the specified point. |
equals | final public boolean equals(Object object)(Code) | | Compares the specified object with
this math transform for equality.
|
getSourceDimensions | final public int getSourceDimensions()(Code) | | Gets the dimension of input points.
|
getTargetDimensions | final public int getTargetDimensions()(Code) | | Gets the dimension of output points.
|
hashCode | final public int hashCode()(Code) | | Returns a hash value for this transform.
|
inverse | final public synchronized MathTransform inverse() throws NoninvertibleTransformException(Code) | | Creates the inverse transform of this object.
|
isIdentity | final public boolean isIdentity()(Code) | | Tests whether this transform does not move any points.
Default implementation check if the two transforms are
identity.
|
isValid | boolean isValid()(Code) | | Check if transforms are compatibles. The default
implementation check if transfert dimension match.
|
transform | public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code) | | Transforms the specified
ptSrc and stores the result in
ptDst .
|
transform | public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException(Code) | | Transforms a list of coordinate point ordinal values.
|
transform | public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code) | | Transforms a list of coordinate point ordinal values.
|
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)
|
|
|