Package com.luciad.transformation
Class TLcdGeoReference2GeoReference
java.lang.Object
com.luciad.transformation.TLcdGeoReference2GeoReference
- All Implemented Interfaces:
ILcdModelModelTransformation
Utility class to transform points and bounds between
ILcdGeoReference implementations.
Transformations between any of the following references are supported:
The transformations can be applied in both directions.
This class is thread-safe.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a transformation utility instance with no references set.TLcdGeoReference2GeoReference(ILcdGeoReference aSourceReference, ILcdGeoReference aDestinationReference) Constructs a transformation utility instance with the given references as source and destination reference. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Deprecated.voiddestinationBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Transforms a bounds from the destinationILcdGeoReferenceto the sourceILcdGeoReference.voiddestinationPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) Transforms a point from the destinationILcdGeoReferenceto the sourceILcdGeoReference.voiddestPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) s Returns the destinationILcdGeoReferenceof thisTLcdModelModelTransformation.Returns the sourceILcdGeoReferenceof thisTLcdModelModelTransformation.booleanisValid()Returns whether thisTLcdModelModelTransformationhas a valid transformation.voidsetDestinationReference(ILcdModelReference aModelReference) Sets the destinationILcdModelReference.voidsetDestinationReference(ILcdGeoReference aDestinationReference) Sets the destinationILcdGeoReferenceof thisTLcdModelModelTransformation.voidsetSourceReference(ILcdModelReference aSourceReference) Sets the sourceILcdModelReference.voidsetSourceReference(ILcdGeoReference aSourceReference) Sets the sourceILcdGeoReferenceof thisTLcdModelModelTransformation.voidsourceBounds2destinationSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) Transforms a bounds from the sourceILcdGeoReferenceto the destinationILcdGeoReference.voidsourceBounds2destSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) voidsourcePoint2destinationSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) Transforms a point from the sourceILcdGeoReferenceto the destinationILcdGeoReference.voidsourcePoint2destSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT)
-
Constructor Details
-
TLcdGeoReference2GeoReference
public TLcdGeoReference2GeoReference()Constructs a transformation utility instance with no references set. Before transforming points or bounds the source and destination reference need to be set.- See Also:
-
TLcdGeoReference2GeoReference
public TLcdGeoReference2GeoReference(ILcdGeoReference aSourceReference, ILcdGeoReference aDestinationReference) Constructs a transformation utility instance with the given references as source and destination reference.- Parameters:
aSourceReference- the reference designated as source reference.aDestinationReference- the reference designated as destination reference.
-
-
Method Details
-
isValid
public boolean isValid()Returns whether thisTLcdModelModelTransformationhas a valid transformation.- Returns:
- whether this
TLcdModelModelTransformationhas a valid transformation.
-
getSourceReference
Returns the sourceILcdGeoReferenceof thisTLcdModelModelTransformation.- Returns:
- the source
ILcdGeoReferenceof thisTLcdModelModelTransformation. - See Also:
-
setSourceReference
Sets the sourceILcdModelReference.- Specified by:
setSourceReferencein interfaceILcdModelModelTransformation- Parameters:
aSourceReference- the sourceILcdModelReference.- Throws:
IllegalArgumentException- if the given reference is not aILcdGeoReference.
-
setSourceReference
Sets the sourceILcdGeoReferenceof thisTLcdModelModelTransformation.- Parameters:
aSourceReference- the new sourceReference value.- See Also:
-
getDestinationReference
s Returns the destinationILcdGeoReferenceof thisTLcdModelModelTransformation.- Returns:
- the destination
ILcdGeoReferenceof thisTLcdModelModelTransformation. - See Also:
-
setDestinationReference
Sets the destinationILcdModelReference.- Specified by:
setDestinationReferencein interfaceILcdModelModelTransformation- Parameters:
aModelReference- the destinationILcdModelReference.- Throws:
IllegalArgumentException- if the given reference is not aILcdGeoReference.
-
setDestinationReference
Sets the destinationILcdGeoReferenceof thisTLcdModelModelTransformation.- Parameters:
aDestinationReference- the new destinationReference value.- See Also:
-
destPoint2sourceSFCT
@Deprecated public void destPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) throws TLcdOutOfBoundsException Deprecated.- Parameters:
aDestinationPoint- the point within the destinationILcdGeoReference.aSourcePointSFCT- the transformed point within the sourceILcdGeoReferenceby side effect. This should be a different point than aDestinationPoint- Throws:
TLcdOutOfBoundsException- if the point is outside the valid area.
-
sourcePoint2destSFCT
@Deprecated public void sourcePoint2destSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) throws TLcdOutOfBoundsException Deprecated.- Parameters:
aSourcePoint- the point within the sourceILcdGeoReference.aDestinationPointSFCT- the transformed point within the destinationILcdGeoReferenceby side effect. This should be a different point than aSourcePoint- Throws:
TLcdOutOfBoundsException- if the point is outside the valid area.
-
sourcePoint2destinationSFCT
public void sourcePoint2destinationSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) throws TLcdOutOfBoundsException Transforms a point from the sourceILcdGeoReferenceto the destinationILcdGeoReference.- Specified by:
sourcePoint2destinationSFCTin interfaceILcdModelModelTransformation- Parameters:
aSourcePoint- the point within the sourceILcdGeoReference.aDestinationPointSFCT- the transformed point within the destinationILcdGeoReferenceby side effect. This should be a different point than aSourcePoint- Throws:
TLcdOutOfBoundsException- if the point is outside the valid area.
-
destinationPoint2sourceSFCT
public void destinationPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) throws TLcdOutOfBoundsException Transforms a point from the destinationILcdGeoReferenceto the sourceILcdGeoReference.- Specified by:
destinationPoint2sourceSFCTin interfaceILcdModelModelTransformation- Parameters:
aDestinationPoint- the point within the destinationILcdGeoReference.aSourcePointSFCT- the transformed point within the sourceILcdGeoReferenceby side effect. This should be a different point than aDestinationPoint- Throws:
TLcdOutOfBoundsException- if the point is outside the valid area.
-
sourceBounds2destSFCT
@Deprecated public void sourceBounds2destSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) throws TLcdNoBoundsException Deprecated.Transforms a bounds from the sourceILcdGeoReferenceto the destinationILcdGeoReference.- Parameters:
aSourceBounds- the bounds within the sourceILcdGeoReference.aDestinationBoundsSFCT- the transformed bounds within the destinationILcdGeoReferenceby side effect.- Throws:
TLcdNoBoundsException- if the bounds cannot be determined.
-
sourceBounds2destinationSFCT
public void sourceBounds2destinationSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) throws TLcdNoBoundsException Transforms a bounds from the sourceILcdGeoReferenceto the destinationILcdGeoReference.- Specified by:
sourceBounds2destinationSFCTin interfaceILcdModelModelTransformation- Parameters:
aSourceBounds- the bounds within the sourceILcdGeoReference.aDestinationBoundsSFCT- the transformed bounds within the destinationILcdGeoReferenceby side effect.- Throws:
TLcdNoBoundsException- if the bounds cannot be determined.
-
destBounds2sourceSFCT
@Deprecated public void destBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) throws TLcdNoBoundsException Deprecated.Transforms a bounds from the sourceILcdGeoReferenceto the destinationILcdGeoReference.- Parameters:
aDestinationBounds- the bounds within the destinationILcdGeoReference.aSourceBoundsSFCT- the transformed bounds within the sourceILcdGeoReferenceby side effect.- Throws:
TLcdNoBoundsException- if the bounds cannot be determined.
-
destinationBounds2sourceSFCT
public void destinationBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) throws TLcdNoBoundsException Transforms a bounds from the destinationILcdGeoReferenceto the sourceILcdGeoReference.- Specified by:
destinationBounds2sourceSFCTin interfaceILcdModelModelTransformation- Parameters:
aDestinationBounds- the bounds within the destinationILcdGeoReference.aSourceBoundsSFCT- the transformed bounds within the sourceILcdGeoReferenceby side effect.- Throws:
TLcdNoBoundsException- if the bounds cannot be determined.
-
destinationBounds2sourceSFCT(com.luciad.shape.ILcdBounds, com.luciad.shape.shape3D.ILcd3DEditableBounds).