|
|||||||||
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.SphereMultiPointBase
backend.spheremodel.SphereLineModel
backend.spheremodel.SphereParaLineModel
public class SphereParaLineModel
The SphereParaLineModel class is used when dealing with parallel transported lines arguably the creation of this class was not absolutley necessary, but it gives us way to indentify a parallel transported line for a normal line and also allows us to have access to the general parallel transport model. In one sense the SphereParaLineModel is merely a wrapper for the SphereLineModel class. The problem is solves is that we needed access to the SphereParaTransModel after a user click so by wrapping the SphereLineModel in this class we had it's versatiliy plus the ability to instantly have this class function while having a low chance of failure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class backend.spheremodel.SphereLineModel |
---|
SphereLineModel.LineType |
Constructor Summary | |
---|---|
SphereParaLineModel(SphereLineModel theModel)
The not so default SphereParaLineModel constructor. |
|
SphereParaLineModel(SphereLineModel theModel,
SphereParaTransModel transMod)
The default constructor for the SphereParaLineModel |
Method Summary | |
---|---|
float |
getLength()
getLength will return the length of this line |
int |
getNumVerticies()
should return the number of vertices on this line |
SphereParaTransModel |
getTrans()
getTrans will return the SphereParaTransModel that this is part of |
boolean |
isIntersectionPtOnLine(javax.vecmath.Point3f checkMe)
This function is ONLY for use with getIntersectionPoints because it assumes the points passed in lies on the great circle formed by the line in question. |
void |
setTrans(SphereParaTransModel newTrans)
setTrans can be used to set the SphereParaTransModel that conrols this SphereParaTransModel. |
Methods inherited from class backend.spheremodel.SphereLineModel |
---|
equals, getFirstPoint, getIntersectionPoints, getLineFromCirc, getLineType, getNormalVecToPlane, getPointsOnLine, getSecondPoint, update |
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 |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereParaLineModel(SphereLineModel theModel, SphereParaTransModel transMod)
theModel
- the SphereLineModel that we will be representingtransMod
- is the SphereParaTransModel that controls thispublic SphereParaLineModel(SphereLineModel theModel)
theModel
- the SphereLineModel to beMethod Detail |
---|
public void setTrans(SphereParaTransModel newTrans)
newTrans
- the new SphereParaTransModel to use for this
SphereParaLineModel.public SphereParaTransModel getTrans()
public float getLength()
SphereLineModel
getLength
in class SphereLineModel
public boolean isIntersectionPtOnLine(javax.vecmath.Point3f checkMe)
SphereLineModel
isIntersectionPtOnLine
in class SphereLineModel
checkMe
- The point to check against this line
public int getNumVerticies()
SphereMultiPointBase
getNumVerticies
in class SphereMultiPointBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |