|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMathTransformProxy
public class MathTransformProxy
A math transform which delegates part of its work to an other math transform. This is used as a starting point for subclass wanting to modifies only some aspect of an existing math transform, or to attach additional informations to it. The default implementation delegates all method calls to the underlying transform. Subclasses typically override some of those methods.
This class is serializable if the underlying transform is serializable too.
modules/library/referencing (gt-referencing.jar)
Field Summary | |
---|---|
MathTransform |
transform
The math transform on which to delegate the work. |
Constructor Summary | |
---|---|
protected |
MathTransformProxy(MathTransform transform)
Creates a new proxy which delegates its work to the specified math transform. |
Method Summary | |
---|---|
Matrix |
derivative(DirectPosition point)
Gets the derivative of this transform at a point. |
boolean |
equals(Object object)
Compares the specified object with this inverse math transform for equality. |
int |
getSourceDimensions()
Gets the dimension of input points. |
int |
getTargetDimensions()
Gets the dimension of output points. |
int |
hashCode()
Returns a hash code value for this math transform. |
MathTransform |
inverse()
Returns the inverse of this math transform. |
boolean |
isIdentity()
Tests whether this transform does not move any points. |
String |
toString()
Returns a string representation for this transform. |
String |
toWKT()
Returns a Well Known Text (WKT) for this transform. |
DirectPosition |
transform(DirectPosition ptSrc,
DirectPosition ptDst)
Transforms the specified ptSrc and stores the result in ptDst . |
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(double[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(float[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final MathTransform transform
Constructor Detail |
---|
protected MathTransformProxy(MathTransform transform)
transform
- The transform on which to delegate the work.Method Detail |
---|
public int getSourceDimensions()
getSourceDimensions
in interface MathTransform
public int getTargetDimensions()
getTargetDimensions
in interface MathTransform
public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws MismatchedDimensionException, TransformException
ptSrc
and stores the result in ptDst
.
transform
in interface MathTransform
MismatchedDimensionException
- if ptSrc
or
ptDst
doesn't have the expected dimension.
TransformException
- if the point can't be transformed.public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public Matrix derivative(DirectPosition point) throws TransformException
derivative
in interface MathTransform
TransformException
public MathTransform inverse() throws NoninvertibleTransformException
inverse
in interface MathTransform
NoninvertibleTransformException
public boolean isIdentity()
isIdentity
in interface MathTransform
public String toWKT() throws UnsupportedOperationException
toWKT
in interface MathTransform
UnsupportedOperationException
- If this object can't be formatted as WKT.public String toString()
toString
in class Object
public boolean equals(Object object)
equals
in class Object
object
- The object to compare with this transform.
true
if the given object is of the same class and if the wrapped
transforms are equal.public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |