backend.spheremodel
Class SphereParaTransModel

java.lang.Object
  extended by java.util.Observable
      extended by backend.spheremodel.SphereBasicObject
          extended by backend.spheremodel.SphereParaTransModel
All Implemented Interfaces:
java.util.Observer

public class SphereParaTransModel
extends SphereBasicObject
implements java.util.Observer

SphereParaTransModel is a model of a parallel transported line on the sphere. This single class handles all instances of lines (short, long, great circle) and should be used to implement parallel transport :).


Constructor Summary
SphereParaTransModel(SphereLineModel transportLine, SphereLineModel transportedLine, javax.vecmath.Point3f startPoint)
          SphereParaTransModel controls how a parallel transported line in Spheriosity will act.it observes all the necessary components to ensure that everything acts as you would expect the SphereParaTransModel is not actually a representation of the parallel transported line.
SphereParaTransModel(SphereLineModel transportLine, SphereLineModel transportedLine, SphereParaLineModel theTransport)
          SphereParaTransModel constructor for reading in from files
 
Method Summary
 SphereLineModel getLineOfTransport()
          getLineOfTransport will return the line that this model parallel transports along
 SphereLineModel getReferenceLine()
          getReferenceLine will return the line that this SphereParaTransModel is transporting in other words the original reference line
 SphereLineModel getTransportedLine()
          getTransportedLine will return the line which is being the line being transported.
 void transportToPoint(javax.vecmath.Point3f newTransPoint)
          transportToPoint will transport will transport the line to the given point
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class backend.spheremodel.SphereBasicObject
addChild, getChild, getChildCount, getSelected, isBeingRemoved, isHidden, notifyFamily, removeChild, setBeingRemoved, setHidden, setSelected
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphereParaTransModel

public SphereParaTransModel(SphereLineModel transportLine,
                            SphereLineModel transportedLine,
                            javax.vecmath.Point3f startPoint)
SphereParaTransModel controls how a parallel transported line in Spheriosity will act.it observes all the necessary components to ensure that everything acts as you would expect the SphereParaTransModel is not actually a representation of the parallel transported line. You can retrieve the line from this class, but the class itself is not the line

Parameters:
transportLine - the line of transport
transportedLine - the line to transport
startPoint - a point to help place the initially transport line. It can be moved around later, of course

SphereParaTransModel

public SphereParaTransModel(SphereLineModel transportLine,
                            SphereLineModel transportedLine,
                            SphereParaLineModel theTransport)
SphereParaTransModel constructor for reading in from files

Parameters:
transportLine - the line we are transporting along
transportedLine - the reference line for transports
theTransport - the line that was previously transported.
Method Detail

transportToPoint

public void transportToPoint(javax.vecmath.Point3f newTransPoint)
transportToPoint will transport will transport the line to the given point

Parameters:
newTransPoint - the point to transport the line two based on the first point of the line

getTransportedLine

public SphereLineModel getTransportedLine()
getTransportedLine will return the line which is being the line being transported. This line is controlled by the SphereParaTransModel so it will get updated properly when it is applicable.

Returns:
the line being transported.

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

getLineOfTransport

public SphereLineModel getLineOfTransport()
getLineOfTransport will return the line that this model parallel transports along

Returns:
the current line of transport

getReferenceLine

public SphereLineModel getReferenceLine()
getReferenceLine will return the line that this SphereParaTransModel is transporting in other words the original reference line

Returns:
the original line that was transported to create the current transported line