|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMathTransform2D.Parameters
protected abstract static class AbstractMathTransform2D.Parameters
The parameters of the enclosing transform as a tuple of (normalize –
non-linear kernel – denormalize) transforms. The normalize
and denormalize parts must be affine transforms. The non-linear
part in the middle is conceptually the enclosing AbstractMathTransform2D. However
this Parameters class does not keep a reference to the enclosing transform because
parameters are typically unmarshalled before the transform is instantiated.
This object is used mostly for Geotk implementation of map projections, where the kernel is a unitary projection. See the projection package for details.
Note: Serialization of this class is appropriate for short-term storage or RMI use, but may not be compatible with future versions. For long term storage, WKT (Well Know Text) or XML are more appropriate.
| referencing/geotk-referencing (download) | View source code for this class |
| Constructor Summary | |
|---|---|
protected |
AbstractMathTransform2D.Parameters(ParameterDescriptorGroup descriptor)
Creates a new Parameters. |
| Method Summary | |
|---|---|
MathTransform2D |
createConcatenatedTransform(MathTransform2D kernel)
Creates a chain of concatenated transforms from the normalize transform, the given kernel and the denormalize transform. |
boolean |
equals(Object object)
Compares the given object with the parameters for equality. |
ParameterDescriptorGroup |
getParameterDescriptors()
Returns the descriptor that represents this tuple as a whole. |
abstract ParameterValueGroup |
getParameterValues()
Returns the parameters that describe this tuple as a whole. |
int |
hashCode()
Returns a hash code value for this object. |
AffineTransform |
normalize(boolean norm)
The affine transforms to be applied before or after the kernel operation. |
String |
toString()
Returns a string representation of the parameters. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMathTransform2D.Parameters(ParameterDescriptorGroup descriptor)
Parameters. The descriptor argument shall describe the parameters
of this tuple as a whole, including the affine transforms applied before and after the
kernel. Subclasses shall initialize those normalize/denormalize affine transforms when they have enough information for doing so.
descriptor - The descriptor that represents this tuple as a whole.| Method Detail |
|---|
public final AffineTransform normalize(boolean norm)
Note:
The normalize/denormalize affine transforms will stop being mutable when the
createConcatenatedTransform(MathTransform2D) method is invoked
for the first time.
norm - true for fetching the normalize transform to apply
before the kernel, or false for the denormalize transform
to apply after the kernel.
true) or denormalize (false) transform.public MathTransform2D createConcatenatedTransform(MathTransform2D kernel)
AffineTransform2D the first time this method
is invoked, since they will be injected in the chain of concatenated transforms.
kernel - The (usually non-linear) kernel.
public ParameterDescriptorGroup getParameterDescriptors()
Note:
The definition of "kernel" is left to implementors. In the particular case of
map projections, kernel are subclasses of UnitaryProjection.
getParameterDescriptors in interface ParameterizedOperationMethod.getParameters()public abstract ParameterValueGroup getParameterValues()
getParameterValues in interface ParameterizedSingleOperation.getParameterValues()public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with the parameters.
true if the given object is equal to this one.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||