public class TLcdDefaultModelXYWorldTransformation extends Object implements ILcdModelXYWorldTransformation
Model reference | Transformation |
---|---|
ILcdGeodeticReference | TLcdGeodetic2Grid |
ILcdGridReference | TLcdGrid2Grid |
ILcdGeoidReference | TLcdGeoid2Grid |
ILcdTopocentricReference | TLcdTopocentric2Grid |
ILcdGeocentricReference | TLcdGeocentric2Grid |
TLcdXYModelReference | TLcdModelXYWorldTransformation |
Equal references | TLcdModelXYWorldTransformation |
Constructor and Description |
---|
TLcdDefaultModelXYWorldTransformation()
Creates a new model world transformation.
|
TLcdDefaultModelXYWorldTransformation(ILcdModelReference aModelReference,
ILcdXYWorldReference aXYWorldReference)
Creates a new model world transformation using the given model and world reference.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
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 TLcdDefaultModelXYWorldTransformation()
setModelReference
and
setXYWorldReference
first.public TLcdDefaultModelXYWorldTransformation(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference)
aModelReference
- the model reference to be used in this transformationaXYWorldReference
- the world reference to be used in this transformationpublic 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
ILcdModelXYWorldTransformation
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()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()