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
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionvoiddestinationBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) Moves a bounds of the source reference to the location of a bounds of the destination reference.voiddestinationPoint2sourceSFCT(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.voidsetDestinationReference(ILcdModelReference aDestinationReference) Sets the destinationILcdModelReference.voidsetSourceReference(ILcdModelReference aSourceReference) Sets the sourceILcdModelReference.voidsourceBounds2destinationSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) Moves a bounds of the destination reference to the location of a bounds of the source reference.voidsourcePoint2destinationSFCT(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 callsetSourceReferenceandsetDestinationReferencefirst. -
TLcdDefaultModelModelTransformation
public TLcdDefaultModelModelTransformation(ILcdModelReference aSourceReference, ILcdModelReference aDestinationReference) Creates a new model model transformation using the given source and destinationILcdModelReference.- Parameters:
aSourceReference- the sourceILcdModelReferenceaDestinationReference- the destinationILcdModelReference
-
-
Method Details
-
setSourceReference
Description copied from interface:ILcdModelModelTransformationSets the sourceILcdModelReference.- Specified by:
setSourceReferencein interfaceILcdModelModelTransformation- Parameters:
aSourceReference- the sourceILcdModelReference.
-
getSourceReference
Returns the set source reference.- Returns:
- the set source reference.
-
setDestinationReference
Description copied from interface:ILcdModelModelTransformationSets the destinationILcdModelReference.- Specified by:
setDestinationReferencein 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:ILcdModelModelTransformationMoves a point of the destination reference to the location of a point of the source reference.- Specified by:
sourcePoint2destinationSFCTin 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:ILcdModelModelTransformationMoves a point of the source reference to the location of a point of the destination reference.- Specified by:
destinationPoint2sourceSFCTin 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:ILcdModelModelTransformationMoves a bounds of the destination reference to the location of a bounds of the source reference.- Specified by:
sourceBounds2destinationSFCTin 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:ILcdModelModelTransformationMoves a bounds of the source reference to the location of a bounds of the destination reference.- Specified by:
destinationBounds2sourceSFCTin 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.
-