|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
backend.spheremodel.SphereBasicObject
backend.spheremodel.SphereParaTransModel
public class SphereParaTransModel
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 |
---|
public SphereParaTransModel(SphereLineModel transportLine, SphereLineModel transportedLine, javax.vecmath.Point3f startPoint)
transportLine
- the line of transporttransportedLine
- the line to transportstartPoint
- a point to help place the initially transport line. It
can be moved around later, of coursepublic SphereParaTransModel(SphereLineModel transportLine, SphereLineModel transportedLine, SphereParaLineModel theTransport)
transportLine
- the line we are transporting alongtransportedLine
- the reference line for transportstheTransport
- the line that was previously transported.Method Detail |
---|
public void transportToPoint(javax.vecmath.Point3f newTransPoint)
newTransPoint
- the point to transport the line two based on the
first point of the linepublic SphereLineModel getTransportedLine()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public SphereLineModel getLineOfTransport()
public SphereLineModel getReferenceLine()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |