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
ConstructorDescriptionConstructs 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 TypeMethodDescriptionvoid
destBounds2sourceSFCT
(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Deprecated.void
destinationBounds2sourceSFCT
(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Transforms a bounds from the destinationILcdGeoReference
to the sourceILcdGeoReference
.void
destinationPoint2sourceSFCT
(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) Transforms a point from the destinationILcdGeoReference
to the sourceILcdGeoReference
.void
destPoint2sourceSFCT
(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) s Returns the destinationILcdGeoReference
of thisTLcdModelModelTransformation
.Returns the sourceILcdGeoReference
of thisTLcdModelModelTransformation
.boolean
isValid()
Returns whether thisTLcdModelModelTransformation
has a valid transformation.void
setDestinationReference
(ILcdModelReference aModelReference) Sets the destinationILcdModelReference
.void
setDestinationReference
(ILcdGeoReference aDestinationReference) Sets the destinationILcdGeoReference
of thisTLcdModelModelTransformation
.void
setSourceReference
(ILcdModelReference aSourceReference) Sets the sourceILcdModelReference
.void
setSourceReference
(ILcdGeoReference aSourceReference) Sets the sourceILcdGeoReference
of thisTLcdModelModelTransformation
.void
sourceBounds2destinationSFCT
(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) Transforms a bounds from the sourceILcdGeoReference
to the destinationILcdGeoReference
.void
sourceBounds2destSFCT
(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) void
sourcePoint2destinationSFCT
(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) Transforms a point from the sourceILcdGeoReference
to the destinationILcdGeoReference
.void
sourcePoint2destSFCT
(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 thisTLcdModelModelTransformation
has a valid transformation.- Returns:
- whether this
TLcdModelModelTransformation
has a valid transformation.
-
getSourceReference
Returns the sourceILcdGeoReference
of thisTLcdModelModelTransformation
.- Returns:
- the source
ILcdGeoReference
of thisTLcdModelModelTransformation
. - See Also:
-
setSourceReference
Sets the sourceILcdModelReference
.- Specified by:
setSourceReference
in interfaceILcdModelModelTransformation
- Parameters:
aSourceReference
- the sourceILcdModelReference
.- Throws:
IllegalArgumentException
- if the given reference is not aILcdGeoReference
.
-
setSourceReference
Sets the sourceILcdGeoReference
of thisTLcdModelModelTransformation
.- Parameters:
aSourceReference
- the new sourceReference value.- See Also:
-
getDestinationReference
s Returns the destinationILcdGeoReference
of thisTLcdModelModelTransformation
.- Returns:
- the destination
ILcdGeoReference
of thisTLcdModelModelTransformation
. - See Also:
-
setDestinationReference
Sets the destinationILcdModelReference
.- Specified by:
setDestinationReference
in interfaceILcdModelModelTransformation
- Parameters:
aModelReference
- the destinationILcdModelReference
.- Throws:
IllegalArgumentException
- if the given reference is not aILcdGeoReference
.
-
setDestinationReference
Sets the destinationILcdGeoReference
of 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 sourceILcdGeoReference
by 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 destinationILcdGeoReference
by 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 sourceILcdGeoReference
to the destinationILcdGeoReference
.- Specified by:
sourcePoint2destinationSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aSourcePoint
- the point within the sourceILcdGeoReference
.aDestinationPointSFCT
- the transformed point within the destinationILcdGeoReference
by 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 destinationILcdGeoReference
to the sourceILcdGeoReference
.- Specified by:
destinationPoint2sourceSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aDestinationPoint
- the point within the destinationILcdGeoReference
.aSourcePointSFCT
- the transformed point within the sourceILcdGeoReference
by 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 sourceILcdGeoReference
to the destinationILcdGeoReference
.- Parameters:
aSourceBounds
- the bounds within the sourceILcdGeoReference
.aDestinationBoundsSFCT
- the transformed bounds within the destinationILcdGeoReference
by 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 sourceILcdGeoReference
to the destinationILcdGeoReference
.- Specified by:
sourceBounds2destinationSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aSourceBounds
- the bounds within the sourceILcdGeoReference
.aDestinationBoundsSFCT
- the transformed bounds within the destinationILcdGeoReference
by 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 sourceILcdGeoReference
to the destinationILcdGeoReference
.- Parameters:
aDestinationBounds
- the bounds within the destinationILcdGeoReference
.aSourceBoundsSFCT
- the transformed bounds within the sourceILcdGeoReference
by 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 destinationILcdGeoReference
to the sourceILcdGeoReference
.- Specified by:
destinationBounds2sourceSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aDestinationBounds
- the bounds within the destinationILcdGeoReference
.aSourceBoundsSFCT
- the transformed bounds within the sourceILcdGeoReference
by side effect.- Throws:
TLcdNoBoundsException
- if the bounds cannot be determined.
-
destinationBounds2sourceSFCT(com.luciad.shape.ILcdBounds, com.luciad.shape.shape3D.ILcd3DEditableBounds)
.