|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.navigation.SphericalInterpolator
A position interpolator that takes Polar coordinates as
arguments. The interpolation follows the shortest path from initial
position to final position along a "great circle" path.
Alpha,
Cartesian,
Polar| Constructor Summary | |
SphericalInterpolator(Polar startPosition,
Polar endPosition,
Length scale)
Construct an instance |
|
| Method Summary | |
void |
addInterpolationListener(InterpolationListener il)
Add a listener to this interpolator |
void |
enablePosition(boolean enabled)
Set the state of the interpolator to update it's Alpha in
response to update( ) calls. |
protected void |
fireInterpolationEvent(int id)
Deliver events to the listeners |
void |
get(Cartesian cartesian)
Return the position as a Cartesian |
Alpha |
getAlpha()
Return the Alpha object |
Polar |
getPolar()
Return the positioning data in a Polar coordinate object. |
void |
removeInterpolationListener(InterpolationListener il)
Remove a listener from this interpolator |
void |
setAlpha(Alpha alpha)
Set the Alpha object to drive the interpolator |
void |
updatePosition(double timeValue)
Process any position changes for the next simulation frame. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SphericalInterpolator(Polar startPosition,
Polar endPosition,
Length scale)
startPosition - the initial position at alpha value of 0.0endPosition - the final position at alpha value of 1.0| Method Detail |
public void setAlpha(Alpha alpha)
Alpha object to drive the interpolator
setAlpha in interface PositionInterpolatoralpha - the Alpha object to installpublic Alpha getAlpha()
Alpha object
getAlpha in interface PositionInterpolatorAlpha objectpublic void updatePosition(double timeValue)
Alpha of this interpolator
by a single increment.
updatePosition in interface PositiontimeValue - the time value is ignoredpublic void enablePosition(boolean enabled)
Alpha in
response to update( ) calls.
enablePosition in interface Positionenabled - true if the object should update it's
Alpha in response to update( ) calls,
false if the object should NOT update it's Alpha
in response to update( ) calls.public void get(Cartesian cartesian)
Cartesian
get in interface Positioncartesian - the Cartesian object to initialize with
the position calculated at the fraction value of the Alphapublic Polar getPolar()
Polar coordinate object.
getPolar in interface PositionPolar coordinate object.public void addInterpolationListener(InterpolationListener il)
addInterpolationListener in interface PositionInterpolatoril - the InterpolationListenerpublic void removeInterpolationListener(InterpolationListener il)
removeInterpolationListener in interface PositionInterpolatoril - the InterpolationListenerprotected void fireInterpolationEvent(int id)
id - the InterpolationEvent id
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||