Class MathTransformProvider.Delegate
- Object
-
- MathTransformProxy
-
- Delegate
-
- All Implemented Interfaces:
Serializable
,MathTransform
- Enclosing class:
- MathTransformProvider
protected static final class MathTransformProvider.Delegate extends MathTransformProxy
The result of a call tocreateMathTransform
. This class encapsulates a reference to the originating provider as well as the created math transform. This information is needed when a provider delegates the work to an other provider according the parameter values. For example a generic instance ofProviderAffine
may delegates the creation of an affine transform to an otherProviderAffine
instance with source and target dimensions matching the supplied parameters, because those dimensions determine the set of legal"elt_j_i"
parameters.Most math transform provider do not delegate their work to an other one, and consequently do not need this class.
Future Geotools version may extends this class for handling more information than just the transform creator. This class is more convenient than adding new methods right into
MathTransformProvider
, because it is sometime difficult for a provider to infer all the conditions prevaling whencreateMathTransform
was executed. Furthermore, it avoid to polluteMathTransformProvider
with methods unused for the vast majority of providers.- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description OperationMethod
method
The provider for the transform.-
Fields inherited from class MathTransformProxy
transform
-
-
Constructor Summary
Constructors Constructor Description Delegate(MathTransform transform, OperationMethod method)
Encapsulates the math transform created by the specified provider.
-
Method Summary
-
Methods inherited from class MathTransformProxy
derivative, equals, getSourceDimensions, getTargetDimensions, hashCode, inverse, isIdentity, toString, toWKT, transform, transform, transform, transform, transform
-
-
-
-
Field Detail
-
method
public final OperationMethod method
The provider for the transform.
-
-
Constructor Detail
-
Delegate
public Delegate(MathTransform transform, OperationMethod method)
Encapsulates the math transform created by the specified provider.- Parameters:
transform
- The math transform created by provider.method
- The provider, typically as an instance ofMathTransformProvider
.
-
-