jat.vr
Class Orbit

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Shape3D
                  extended by jat.vr.Orbit
All Implemented Interfaces:
Printable

public class Orbit
extends javax.media.j3d.Shape3D
implements Printable

The Orbit class creates a Shape3D object in Java3D for a twobody orbit.

Version:
1.0
Author:
Tobias Berthold

Field Summary
 double[] coords
           
 double[] t
           
 double[] x
           
 double[] y
           
 double[] z
           
 
Fields inherited from class javax.media.j3d.Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
Orbit()
           
Orbit(double[] coords)
           
Orbit(double a, double e, double i, double raan, double w, double ta)
          Construct a TwoBody orbit from 6 orbit elements.
Orbit(double a, double e, double i, double raan, double w, double ta, javax.vecmath.Color3f Color, int steps)
           
Orbit(KeplerElements el)
           
Orbit(KeplerElements el, javax.vecmath.Color3f Color)
           
 
Method Summary
 void print(double time, double[] pos)
           
 
Methods inherited from class javax.media.j3d.Shape3D
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coords

public double[] coords

t

public double[] t

x

public double[] x

y

public double[] y

z

public double[] z
Constructor Detail

Orbit

public Orbit(double[] coords)

Orbit

public Orbit()

Orbit

public Orbit(double a,
             double e,
             double i,
             double raan,
             double w,
             double ta)
Construct a TwoBody orbit from 6 orbit elements. Angles are input in degrees.

Parameters:
a - Semi-major axis in km.
e - Eccentricity.
i - Inclination in degrees.
raan - RAAN in degrees.
w - Argument of perigee in degrees.
ta - True anomaly in degrees.

Orbit

public Orbit(double a,
             double e,
             double i,
             double raan,
             double w,
             double ta,
             javax.vecmath.Color3f Color,
             int steps)

Orbit

public Orbit(KeplerElements el)

Orbit

public Orbit(KeplerElements el,
             javax.vecmath.Color3f Color)
Method Detail

print

public void print(double time,
                  double[] pos)
Specified by:
print in interface Printable