Package com.luciad.transformation
Class TLcdDefaultModelModelTransformation
java.lang.Object
com.luciad.transformation.TLcdDefaultModelModelTransformation
- All Implemented Interfaces:
ILcdModelModelTransformation
public class TLcdDefaultModelModelTransformation
extends Object
implements ILcdModelModelTransformation
Utility class to transform points and bounds between
ILcdModelReference
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
ConstructorDescriptionCreates a new model model transformation.TLcdDefaultModelModelTransformation
(ILcdModelReference aSourceReference, ILcdModelReference aDestinationReference) Creates a new model model transformation using the given source and destinationILcdModelReference
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destinationBounds2sourceSFCT
(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Moves a bounds of the source reference to the location of a bounds of the destination reference.void
destinationPoint2sourceSFCT
(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) Moves a point of the source reference to the location of a point of the destination reference.Returns the set destination reference.Returns the set source reference.void
setDestinationReference
(ILcdModelReference aDestinationReference) Sets the destinationILcdModelReference
.void
setSourceReference
(ILcdModelReference aSourceReference) Sets the sourceILcdModelReference
.void
sourceBounds2destinationSFCT
(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) Moves a bounds of the destination reference to the location of a bounds of the source reference.void
sourcePoint2destinationSFCT
(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) Moves a point of the destination reference to the location of a point of the source reference.
-
Constructor Details
-
TLcdDefaultModelModelTransformation
public TLcdDefaultModelModelTransformation()Creates a new model model transformation. Before using this class, it is necessary to callsetSourceReference
andsetDestinationReference
first. -
TLcdDefaultModelModelTransformation
public TLcdDefaultModelModelTransformation(ILcdModelReference aSourceReference, ILcdModelReference aDestinationReference) Creates a new model model transformation using the given source and destinationILcdModelReference
.- Parameters:
aSourceReference
- the sourceILcdModelReference
aDestinationReference
- the destinationILcdModelReference
-
-
Method Details
-
setSourceReference
Description copied from interface:ILcdModelModelTransformation
Sets the sourceILcdModelReference
.- Specified by:
setSourceReference
in interfaceILcdModelModelTransformation
- Parameters:
aSourceReference
- the sourceILcdModelReference
.
-
getSourceReference
Returns the set source reference.- Returns:
- the set source reference.
-
setDestinationReference
Description copied from interface:ILcdModelModelTransformation
Sets the destinationILcdModelReference
.- Specified by:
setDestinationReference
in interfaceILcdModelModelTransformation
- Parameters:
aDestinationReference
- the destinationILcdModelReference
.
-
getDestinationReference
Returns the set destination reference.- Returns:
- the set destination reference.
-
sourcePoint2destinationSFCT
public void sourcePoint2destinationSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelModelTransformation
Moves a point of the destination reference to the location of a point of the source reference.- Specified by:
sourcePoint2destinationSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aSourcePoint
- a given point in the source reference.aDestinationPointSFCT
- the point that is used to store the point after being transformed to the destination reference.- Throws:
TLcdOutOfBoundsException
- when the point in the source reference cannot be expressed in coordinates of the destination reference.
-
destinationPoint2sourceSFCT
public void destinationPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelModelTransformation
Moves a point of the source reference to the location of a point of the destination reference.- Specified by:
destinationPoint2sourceSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aDestinationPoint
- a given point in the destination reference.aSourcePointSFCT
- the point that is used to store the point after being transformed to the source reference.- Throws:
TLcdOutOfBoundsException
- when the point in the destination reference cannot be expressed in coordinates of the source reference.
-
sourceBounds2destinationSFCT
public void sourceBounds2destinationSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) throws TLcdNoBoundsException Description copied from interface:ILcdModelModelTransformation
Moves a bounds of the destination reference to the location of a bounds of the source reference.- Specified by:
sourceBounds2destinationSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aSourceBounds
- given bounds in the source reference.aDestinationBoundsSFCT
- the bounds used to store the bounds after being transformed to the destination reference.- Throws:
TLcdNoBoundsException
- when the bounds in the destination reference cannot be expressed in coordinates of the source reference, or if it isundefined
.
-
destinationBounds2sourceSFCT
public void destinationBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) throws TLcdNoBoundsException Description copied from interface:ILcdModelModelTransformation
Moves a bounds of the source reference to the location of a bounds of the destination reference.- Specified by:
destinationBounds2sourceSFCT
in interfaceILcdModelModelTransformation
- Parameters:
aDestinationBounds
- given bounds in the destination reference.aSourceBoundsSFCT
- the bounds used to store the bounds after being transformed to the source reference.- Throws:
TLcdNoBoundsException
- when the bounds in the destination reference cannot be expressed in coordinates of the source reference, or if it isundefined
.
-