public class TLcdIdentityModelXYWorldTransformation extends Object implements ILcdModelXYWorldTransformation
This ILcdModelXYWorldTransformation
defines an identify transformation between
an ILcdModelReference
and an ILcdXYWorldReference
.
This implementation doesn't perform any transformation. It is a unitary operation,
assuming that the ILcdModelReference
and the ILcdXYWorldReference
are the same coordinate system.
See TLcdDefaultModelXYWorldTransformation
for a non-identity transformation that works with
all supported LuciadLightspeed references.
Constructor and Description |
---|
TLcdIdentityModelXYWorldTransformation()
Default constructor with a null
ILcdModelReference and
a null ILcdXYWorldReference . |
TLcdIdentityModelXYWorldTransformation(ILcdModelReference aModelReference,
ILcdXYWorldReference aXYWorldReference)
Default constructor with a
ILcdModelReference and a ILcdXYWorldReference . |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deep clone.
|
ILcdModelReference |
getModelReference()
Gets the model reference of this
ILcdModelXYWorldTransformation . |
ILcdXYWorldReference |
getXYWorldReference()
Gets the world reference of this
ILcdModelXYWorldTransformation . |
void |
modelBounds2worldSFCT(ILcdBounds aModelBounds,
ILcd2DEditableBounds aWorldBoundsSFCT)
Transforms model bounds into world bounds.
|
void |
modelPoint2worldSFCT(ILcdPoint aModelPoint,
ILcd2DEditablePoint aWorldPointSFCT)
Transforms a model point into a world point.
|
void |
setModelReference(ILcdModelReference aModelReference)
Sets the model reference of this
ILcdModelXYWorldTransformation . |
void |
setXYWorldReference(ILcdXYWorldReference aXYWorldReference)
Sets the world reference of this
ILcdModelXYWorldTransformation . |
void |
worldBounds2modelSFCT(ILcdBounds aWorldBounds,
ILcd3DEditableBounds aModelBoundsSFCT)
Transforms world bounds into model bounds.
|
void |
worldPoint2modelSFCT(ILcdPoint aWorldPoint,
ILcd3DEditablePoint aModelPointSFCT)
Transforms a world point into a model point.
|
public TLcdIdentityModelXYWorldTransformation()
ILcdModelReference
and
a null ILcdXYWorldReference
.public TLcdIdentityModelXYWorldTransformation(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference)
ILcdModelReference
and a ILcdXYWorldReference
.aModelReference
- the model referenceaXYWorldReference
- the world referencepublic ILcdModelReference getModelReference()
ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.getModelReference
in interface ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.ILcdModelXYWorldTransformation.setModelReference(com.luciad.model.ILcdModelReference)
public void setModelReference(ILcdModelReference aModelReference)
ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.setModelReference
in interface ILcdModelXYWorldTransformation
aModelReference
- the model reference to be used in this ILcdModelXYWorldTransformation
.ILcdModelXYWorldTransformation.getModelReference()
public ILcdXYWorldReference getXYWorldReference()
ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.getXYWorldReference
in interface ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.ILcdModelXYWorldTransformation.setXYWorldReference(com.luciad.view.ILcdXYWorldReference)
public void setXYWorldReference(ILcdXYWorldReference aXYWorldReference)
ILcdModelXYWorldTransformation
ILcdModelXYWorldTransformation
.setXYWorldReference
in interface ILcdModelXYWorldTransformation
aXYWorldReference
- the world reference to be used in this ILcdModelXYWorldTransformation
.ILcdModelXYWorldTransformation.getXYWorldReference()
public void modelPoint2worldSFCT(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPointSFCT) throws TLcdOutOfBoundsException
modelPoint2worldSFCT
in interface ILcdModelXYWorldTransformation
aModelPoint
- coordinate in model reference system.aWorldPointSFCT
- coordinate in world reference system upon completion of the method.TLcdOutOfBoundsException
- if the model point is outside the valid area of the projection.public void worldPoint2modelSFCT(ILcdPoint aWorldPoint, ILcd3DEditablePoint aModelPointSFCT) throws TLcdOutOfBoundsException
ILcdModelXYWorldTransformation
worldPoint2modelSFCT
in interface ILcdModelXYWorldTransformation
aWorldPoint
- coordinate in world reference system.aModelPointSFCT
- coordinate in model reference system upon completion of the method.TLcdOutOfBoundsException
- if the world point is outside the valid area of the projection.public void modelBounds2worldSFCT(ILcdBounds aModelBounds, ILcd2DEditableBounds aWorldBoundsSFCT) throws TLcdNoBoundsException
ILcdModelXYWorldTransformation
modelBounds2worldSFCT
in interface ILcdModelXYWorldTransformation
aModelBounds
- bounds in model reference system.aWorldBoundsSFCT
- bounds in world reference system upon completion of the method.TLcdNoBoundsException
- if the model bounds doesn't have valid corresponding bounds in world space, or if it is undefined
.public void worldBounds2modelSFCT(ILcdBounds aWorldBounds, ILcd3DEditableBounds aModelBoundsSFCT) throws TLcdOutOfBoundsException
ILcdModelXYWorldTransformation
worldBounds2modelSFCT
in interface ILcdModelXYWorldTransformation
aWorldBounds
- bounds in world reference system.aModelBoundsSFCT
- bounds in model reference system upon completion of the method.TLcdOutOfBoundsException
- if the world bounds are outside the valid area of the projection, or if it is undefined
.public Object clone()
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()