public class TLcdDefaultModelModelTransformation extends Object implements ILcdModelModelTransformation
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 and Description |
---|
TLcdDefaultModelModelTransformation()
Creates a new model model transformation.
|
TLcdDefaultModelModelTransformation(ILcdModelReference aSourceReference,
ILcdModelReference aDestinationReference)
Creates a new model model transformation using the given source and destination
ILcdModelReference . |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
ILcdModelReference |
getDestinationReference()
Returns the set destination reference.
|
ILcdModelReference |
getSourceReference()
Returns the set source reference.
|
void |
setDestinationReference(ILcdModelReference aDestinationReference)
Sets the destination
ILcdModelReference . |
void |
setSourceReference(ILcdModelReference aSourceReference)
Sets the source
ILcdModelReference . |
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.
|
public TLcdDefaultModelModelTransformation()
setSourceReference
and
setDestinationReference
first.public TLcdDefaultModelModelTransformation(ILcdModelReference aSourceReference, ILcdModelReference aDestinationReference)
ILcdModelReference
.aSourceReference
- the source ILcdModelReference
aDestinationReference
- the destination ILcdModelReference
public void setSourceReference(ILcdModelReference aSourceReference)
ILcdModelModelTransformation
ILcdModelReference
.setSourceReference
in interface ILcdModelModelTransformation
aSourceReference
- the source ILcdModelReference
.public ILcdModelReference getSourceReference()
public void setDestinationReference(ILcdModelReference aDestinationReference)
ILcdModelModelTransformation
ILcdModelReference
.setDestinationReference
in interface ILcdModelModelTransformation
aDestinationReference
- the destination ILcdModelReference
.public ILcdModelReference getDestinationReference()
public void sourcePoint2destinationSFCT(ILcdPoint aSourcePoint, ILcd3DEditablePoint aDestinationPointSFCT) throws TLcdOutOfBoundsException
ILcdModelModelTransformation
sourcePoint2destinationSFCT
in interface ILcdModelModelTransformation
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.TLcdOutOfBoundsException
- when the point in the source reference cannot be expressed
in coordinates of the destination reference.public void destinationPoint2sourceSFCT(ILcdPoint aDestinationPoint, ILcd3DEditablePoint aSourcePointSFCT) throws TLcdOutOfBoundsException
ILcdModelModelTransformation
destinationPoint2sourceSFCT
in interface ILcdModelModelTransformation
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.TLcdOutOfBoundsException
- when the point in the destination reference cannot be expressed
in coordinates of the source reference.public void sourceBounds2destinationSFCT(ILcdBounds aSourceBounds, ILcd3DEditableBounds aDestinationBoundsSFCT) throws TLcdNoBoundsException
ILcdModelModelTransformation
sourceBounds2destinationSFCT
in interface ILcdModelModelTransformation
aSourceBounds
- given bounds in the source reference.aDestinationBoundsSFCT
- the bounds used to store the bounds after being transformed
to the destination reference.TLcdNoBoundsException
- when the bounds in the destination reference cannot be expressed
in coordinates of the source reference, or if it is undefined
.public void destinationBounds2sourceSFCT(ILcdBounds aDestinationBounds, ILcd3DEditableBounds aSourceBoundsSFCT) throws TLcdNoBoundsException
ILcdModelModelTransformation
destinationBounds2sourceSFCT
in interface ILcdModelModelTransformation
aDestinationBounds
- given bounds in the destination reference.aSourceBoundsSFCT
- the bounds used to store the bounds after being transformed to the
source reference.TLcdNoBoundsException
- when the bounds in the destination reference cannot be expressed
in coordinates of the source reference, or if it is undefined
.