backend.spheremodel
Class SphereShortLineModel

java.lang.Object
  extended by java.util.Observable
      extended by backend.spheremodel.SphereBasicObject
          extended by backend.spheremodel.SphereMultiPointBase
              extended by backend.spheremodel.SphereLineModel
                  extended by backend.spheremodel.SphereShortLineModel
All Implemented Interfaces:
CircleIntersection, java.util.Observer

public class SphereShortLineModel
extends SphereLineModel

SphereShortLineModel is a model for a short line on the sphere


Nested Class Summary
 
Nested classes/interfaces inherited from class backend.spheremodel.SphereLineModel
SphereLineModel.LineType
 
Constructor Summary
SphereShortLineModel(SpherePointModel fPoint, SpherePointModel sPoint, SphereModel theSphere)
          SphereShortLineModel construcotr
 
Method Summary
 float getLength()
          getLength will return the length of this line
 int getNumVerticies()
          should return the number of vertices on this line
 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 update(java.util.Observable ob, java.lang.Object arg)
           
 
Methods inherited from class backend.spheremodel.SphereLineModel
equals, getFirstPoint, getIntersectionPoints, getLineFromCirc, getLineType, getNormalVecToPlane, getPointsOnLine, getSecondPoint
 
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

SphereShortLineModel

public SphereShortLineModel(SpherePointModel fPoint,
                            SpherePointModel sPoint,
                            SphereModel theSphere)
SphereShortLineModel construcotr

Parameters:
fPoint - first point for the line
sPoint - second point for the line
theSphere - The sphere model for this short line
Method Detail

getLength

public float getLength()
Description copied from class: SphereLineModel
getLength will return the length of this line

Specified by:
getLength in class SphereLineModel
Returns:
the length of the line

isIntersectionPtOnLine

public boolean isIntersectionPtOnLine(javax.vecmath.Point3f checkMe)
Description copied from class: SphereLineModel
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. It SHOULD NOT be used to try and tell if a point is on a line!

Specified by:
isIntersectionPtOnLine in class SphereLineModel
Parameters:
checkMe - The point to check against this line
Returns:
True if it's on the line false if it's not

update

public void update(java.util.Observable ob,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer
Overrides:
update in class SphereLineModel

getNumVerticies

public int getNumVerticies()
Description copied from class: SphereMultiPointBase
should return the number of vertices on this line

Specified by:
getNumVerticies in class SphereMultiPointBase