|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.cs.CRSIdentifiable
org.deegree.cs.transformations.Transformation
org.deegree.cs.transformations.coordinate.ConcatenatedTransform
public class ConcatenatedTransform
The ConcatenatedTransform class allows the connection of two transformations.
Calling inverse on this transformation will invert the whole underlying transformation chain. For example, if A * (B *C)=D and D is this transformation calling D.inverse() will result in (C.inverse * B.inverse) * A.inverse.
| Constructor Summary | |
|---|---|
ConcatenatedTransform(Transformation first,
Transformation second)
Creates a transform by concatenating two existing transforms. |
|
ConcatenatedTransform(Transformation first,
Transformation second,
CRSResource id)
Creates a transform by concatenating two existing transforms. |
|
| Method Summary | |
|---|---|
static Transformation |
concatenate(Transformation step1,
Transformation step2)
Concatenate two transformations. |
static Transformation |
concatenate(Transformation step1,
Transformation step2,
boolean keepIdentity)
Concatenate two transformations. |
static Transformation |
concatenate(Transformation step1,
Transformation step2,
Transformation step3)
Concatenate three transformations into one. |
static Transformation |
concatenate(Transformation step1,
Transformation step2,
Transformation step3,
boolean keepIdentity)
Concatenate three transformations into one. |
boolean |
contains(ICRS crs)
Returns true if this Transformation transforms over the given crs. |
List<javax.vecmath.Point3d> |
doTransform(List<javax.vecmath.Point3d> srcPts)
Do a transformation, e.g. the incoming data will be transformed into other coordinates. |
Transformation |
getFirstTransform()
|
String |
getImplementationName()
|
Transformation |
getSecondTransform()
|
void |
inverse()
This method flags the transformation about it's state. |
boolean |
isIdentity()
|
| Methods inherited from class org.deegree.cs.transformations.Transformation |
|---|
areInverse, canTransform, copyTransformation, createFromTo, doTransform, doTransform, equalOnCRS, equals, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, isInverseTransform, setSourceCRS |
| Methods inherited from class org.deegree.cs.CRSIdentifiable |
|---|
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getId, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hashCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConcatenatedTransform(Transformation first,
Transformation second,
CRSResource id)
first - The first transformation to apply to given points.second - The second transformation to apply to given points.id - an identifiable instance containing information about this transformation
public ConcatenatedTransform(Transformation first,
Transformation second)
Transformation.createFromTo(String, String) method.
first - The first transformation to apply to given points.second - The second transformation to apply to given points.| Method Detail |
|---|
public List<javax.vecmath.Point3d> doTransform(List<javax.vecmath.Point3d> srcPts)
throws TransformationException
Transformation
doTransform in class TransformationsrcPts - the points which must be transformed, expected are following values either, long_1, lat_1, height_1,
long_2, lat_2, height_2. or long_1, lat_1, long_2, lat_2
TransformationException - if a transform could not be calculated.public void inverse()
Transformation
inverse in class Transformationpublic boolean isIdentity()
isIdentity in class Transformationpublic final Transformation getFirstTransform()
public final Transformation getSecondTransform()
public String getImplementationName()
getImplementationName in class Transformationpublic boolean contains(ICRS crs)
Transformation
contains in class Transformationcrs - to check for
public static Transformation concatenate(Transformation step1,
Transformation step2,
boolean keepIdentity)
step1 - The first step, or null for the identity transform.step2 - The second step, or null for the identity transform.keepIdentity - true if identity Transformations should be kept in the resulting ConcatenatedTransform
. Default value is false.
null if all arguments was nul.
public static Transformation concatenate(Transformation step1,
Transformation step2)
step1 - The first step, or null for the identity transform.step2 - The second step, or null for the identity transform.
null if all arguments was nul.
public static Transformation concatenate(Transformation step1,
Transformation step2,
Transformation step3,
boolean keepIdentity)
step1 - The first step, or null for the identity transform.step2 - The second step, or null for the identity transform.step3 - The third step, or null for the identity transform.keepIdentity - true if identity Transformations should be kept in the resulting ConcatenatedTransform
. Default value is false.
null if all arguments were null.
public static Transformation concatenate(Transformation step1,
Transformation step2,
Transformation step3)
step1 - The first step, or null for the identity transform.step2 - The second step, or null for the identity transform.step3 - The third step, or null for the identity transform.
null if all arguments were null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||