public abstract class ALcdProjection extends Object implements ILcdProjection, Cloneable
ILcdProjection
.Modifier and Type | Field and Description |
---|---|
protected TLcdPropertyChangeDispatcher |
fPropertyChangeDispatcher
Dispatches property changes to the listeners.
|
EPSILON
Constructor and Description |
---|
ALcdProjection() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
Registers the given
PropertyChangeListener to be notified when this object's
properties change. |
double[][] |
boundaryLats(double aLongitude)
Default implementation.
|
double[][] |
boundaryLons(double aLatitude)
Default implementation.
|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
protected void |
firePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent)
Calls all the PropertyChangeListener objects about the property change taken place.
|
boolean |
inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid)
Default implementation calls
inWorldBoundsOnSphere with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aXYPointSFCT)
Default implementation calls
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius() as sphere radius. |
void |
removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
De-registers the given
PropertyChangeListener from receiving property change events
for this object. |
void |
world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid,
ILcd2DEditableBounds aWorldBoundsSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aLLPointSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getOrigin, inLonLatBounds, inWorldBoundsOnSphere, isAllInBounds, isContinuous, loadProperties, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnSphereSFCT, world2lonlatOnSphereSFCT, writePropertiesSFCT
protected TLcdPropertyChangeDispatcher fPropertyChangeDispatcher
public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
ILcdPropertyChangeSource
Registers the given PropertyChangeListener
to be notified when this object's
properties change.
In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source,
you can use a ALcdWeakPropertyChangeListener
instance as property change listener.
addPropertyChangeListener
in interface ILcdPropertyChangeSource
aPropertyChangeListener
- The listener to be notifiedALcdWeakPropertyChangeListener
,
ILcdPropertyChangeSource.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
ILcdPropertyChangeSource
De-registers the given PropertyChangeListener
from receiving property change events
for this object.
If the listener was added more than once, it will be notified one less time after being
removed.
If the listener is null
, or was never added, no exception is thrown and no action is taken.
removePropertyChangeListener
in interface ILcdPropertyChangeSource
aPropertyChangeListener
- the listener that should no longer be notified of changes of
this object's propertiesILcdPropertyChangeSource.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius()
as sphere radius.lonlatheight2worldOnEllipsoidSFCT
in interface ILcdProjection
aLLHP
- point to be projected.aEllipsoid
- ellipsoid on which the point is defined.aXYPointSFCT
- projected point as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aLLHP
is not within the valid area
of the projection (visible area), then this exception is thrown.public void world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aLLPointSFCT) throws TLcdOutOfBoundsException
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2lonlatOnEllipsoidSFCT
in interface ILcdProjection
aXYPoint
- projected point for which the corresponding geodetic point is sought.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.aLLPointSFCT
- resulting geodetic coordinate as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aXYPoint
is not within the valid
area of the projection (visible area), then this exception is thrown.public void world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid, ILcd2DEditableBounds aWorldBoundsSFCT)
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2DEditableBoundsOnEllipsoidSFCT
in interface ILcdProjection
aEllipsoid
- ellipsoid considered.aWorldBoundsSFCT
- the bounds of the projection in world coordinates as side effect.public boolean inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid)
inWorldBoundsOnSphere
with
aEllipsoid.getAuxRadius()
as sphere radius.inWorldBoundsOnEllipsoid
in interface ILcdProjection
aXYPoint
- point to be checked upon.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.true
if valid, false
if invalid.ILcdProjection.inWorldBoundsOnSphere(com.luciad.shape.ILcdPoint, double)
public double[][] boundaryLons(double aLatitude)
boundaryLons
in interface ILcdProjection
aLatitude
- latitude in decimal degrees and -90.0 <= aLat
<= 90.0.public double[][] boundaryLats(double aLongitude)
boundaryLats
in interface ILcdProjection
aLongitude
- longitude in decimal degrees -180.0 <= lon <= 180.0 .public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class Object
ILcdProjection
.protected void firePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent)
aPropertyChangeEvent
- The property change that has taken place.