Jeospace API

org.jeospace.navigation
Class ShadowParent

java.lang.Object
  extended byorg.jeospace.navigation.ShadowParent
All Implemented Interfaces:
Position

public class ShadowParent
extends java.lang.Object
implements Position

A Position implementation that provides shadow coordinates for a parent object. Used for following (shadowing) a parent - such as following the Sun from the Earth.

Version:
$Revision: 1.2 $
Author:
Rex Melton
See Also:
Cartesian, Polar, Length, KineticBody

Constructor Summary
ShadowParent(KineticBody child, Length distance)
          Constructor
 
Method Summary
 void enablePosition(boolean enabled)
          Set the state of the object to produce updated positioning data.
 void get(Cartesian cartesian)
          Return the positioning data in the argument object.
 Polar getPolar()
          Return the positioning data in a Polar coordinate object.
 void updatePosition(double julianDay)
          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

ShadowParent

public ShadowParent(KineticBody child,
                    Length distance)
Constructor

Parameters:
child - the body whose parent shall be shadowed
distance - the fixed distance from the body to place the shadow position. If distance is null, then the actual distance to the object will be used.
Method Detail

updatePosition

public void updatePosition(double julianDay)
Process any position changes for the next simulation frame.

Specified by:
updatePosition in interface Position
Parameters:
julianDay - the Julian day for which to calculate the position

enablePosition

public void enablePosition(boolean enabled)
Set the state of the object to produce updated positioning data. By default, the state of this object is initialized to true.

Specified by:
enablePosition in interface Position
Parameters:
enabled - true if the object should update it's positioning data in response to update( ) calls, false if the object should NOT update it's positioning data in response to update( ) calls.

get

public void get(Cartesian cartesian)
Return the positioning data in the argument object.

Specified by:
get in interface Position
Parameters:
cartesian - the Cartesian coordinate object to initialize with the current positioning data.

getPolar

public Polar getPolar()
Return the positioning data in a Polar coordinate object.

Specified by:
getPolar in interface Position
Returns:
the positioning data in a Polar coordinate object.

Jeospace API

Copyright © 2006 - jeospace.org