org.vrspace.server
Class Path

java.lang.Object
  extended byorg.vrspace.server.Path

public class Path
extends java.lang.Object

Path is set of waypoints and times to travel between them.


Constructor Summary
Path()
           
 
Method Summary
 void add(Waypoint p)
           
 Waypoint getPoint(float time)
          Returns waypoint for specified time, relative to path start
Uses linear interpolation for translation, and last orientation.
 void insert(Waypoint p, int pos)
           
 void remove(int pos)
           
 void remove(Waypoint p)
           
 void setSize(int size)
          Set path size: remove viewpoints untill size equals new size.
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path()
Method Detail

add

public void add(Waypoint p)

insert

public void insert(Waypoint p,
                   int pos)

remove

public void remove(Waypoint p)

remove

public void remove(int pos)

size

public int size()

getPoint

public Waypoint getPoint(float time)
Returns waypoint for specified time, relative to path start
Uses linear interpolation for translation, and last orientation.


setSize

public void setSize(int size)
Set path size: remove viewpoints untill size equals new size.


toString

public java.lang.String toString()