|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleTransformFactory
public class SimpleTransformFactory
A MathTransformFactory for creating SimpleTransform instances.
The only methods supported by this simple implementation are:
getVendor()getAvailableMethods(Class), which returns an empty set.getLastMethodUsed(), which returns null.createAffineTransform(Matrix)
| Constructor Summary | |
|---|---|
SimpleTransformFactory()
Creates a new factory. |
|
| Method Summary | |
|---|---|
MathTransform |
createAffineTransform(Matrix matrix)
Creates an affine transform from a matrix. |
MathTransform |
createBaseToDerived(CoordinateReferenceSystem baseCRS,
ParameterValueGroup parameters,
CoordinateSystem derivedCS)
Creates a parameterized transform from a base CRS to a derived CS. |
MathTransform |
createConcatenatedTransform(MathTransform transform1,
MathTransform transform2)
Creates a transform by concatenating two existing transforms. |
MathTransform |
createFromWKT(String wkt)
Creates a transform from a WKT string. |
MathTransform |
createFromXML(String xml)
Creates a transform from a XML string. |
MathTransform |
createParameterizedTransform(ParameterValueGroup parameters)
Creates a transform from a group of parameters. |
MathTransform |
createPassThroughTransform(int firstAffectedOrdinate,
MathTransform subTransform,
int numTrailingOrdinates)
Creates a transform which passes through a subset of ordinates to another transform. |
Set<OperationMethod> |
getAvailableMethods(Class<? extends SingleOperation> type)
Returns a set of available methods for math transforms. |
ParameterValueGroup |
getDefaultParameters(String method)
Returns the default parameter values for a math transform using the given method. |
OperationMethod |
getLastMethodUsed()
Returns the operation method used for the latest call to createParameterizedTransform, or null
if not applicable. |
Citation |
getVendor()
Returns the implementor of this factory. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTransformFactory()
| Method Detail |
|---|
public Citation getVendor()
getVendor in interface Factorypublic Set<OperationMethod> getAvailableMethods(Class<? extends SingleOperation> type)
getAvailableMethods in interface MathTransformFactorypublic OperationMethod getLastMethodUsed()
createParameterizedTransform, or null
if not applicable. The default implementation returns null in all cases.
getLastMethodUsed in interface MathTransformFactory
public ParameterValueGroup getDefaultParameters(String method)
throws NoSuchIdentifierException
getDefaultParameters in interface MathTransformFactoryNoSuchIdentifierException
public MathTransform createBaseToDerived(CoordinateReferenceSystem baseCRS,
ParameterValueGroup parameters,
CoordinateSystem derivedCS)
throws FactoryException
createBaseToDerived in interface MathTransformFactoryFactoryException
public MathTransform createParameterizedTransform(ParameterValueGroup parameters)
throws FactoryException
createParameterizedTransform in interface MathTransformFactoryFactoryException
public MathTransform createAffineTransform(Matrix matrix)
throws FactoryException
M,
and output dimension is N, then the matrix will have size [N+1][M+1].
The +1 in the matrix dimensions allows the matrix to do a shift, as well as a rotation.
The [M][j] element of the matrix will be the j'th ordinate of the moved
origin. The [i][N] element of the matrix will be 0 for i less than
M, and 1 for i equals M.
createAffineTransform in interface MathTransformFactorymatrix - The matrix used to define the affine transform.
FactoryException - if the object creation failed.AffineTransform2D,
ProjectiveTransform
public MathTransform createConcatenatedTransform(MathTransform transform1,
MathTransform transform2)
throws FactoryException
createConcatenatedTransform in interface MathTransformFactoryFactoryException
public MathTransform createPassThroughTransform(int firstAffectedOrdinate,
MathTransform subTransform,
int numTrailingOrdinates)
throws FactoryException
createPassThroughTransform in interface MathTransformFactoryFactoryException
public MathTransform createFromXML(String xml)
throws FactoryException
createFromXML in interface MathTransformFactoryFactoryException
public MathTransform createFromWKT(String wkt)
throws FactoryException
createFromWKT in interface MathTransformFactoryFactoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||