|
|||||||||
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
public abstract class SphereLineModel
SphereLineModel is a backend representation of a line
Nested Class Summary | |
---|---|
static class |
SphereLineModel.LineType
|
Constructor Summary | |
---|---|
SphereLineModel(SpherePointModel fPoint,
SpherePointModel sPoint,
SphereModel theSphere)
This SphereLineModel constructor will initalize that basics that need to be set in place for any Line that will be placed on there Sphere. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object checkMe)
|
SpherePointModel |
getFirstPoint()
getFirstPoint returns the first point of this line |
java.util.ArrayList<javax.vecmath.Point3f> |
getIntersectionPoints(SphereLineModel checkMe,
double sphereRadius)
getIntersectionPoints will return the points of intersection of this line and the one passed in |
abstract float |
getLength()
getLength will return the length of this line |
Line3f |
getLineFromCirc(javax.vecmath.Vector3f rotationAxis)
getLineFromCirc this function should create a line which lies on the plane formed by the object implementing this class and it should use this axis of rotation to create the line by rotating the center point of the circle. |
SphereLineModel.LineType |
getLineType()
getLineType returns the type of this line |
javax.vecmath.Vector3f |
getNormalVecToPlane()
getNormalVecToPlane() should return a normal vector to the plane created by whatever class implements this interface. |
javax.vecmath.Point3f[] |
getPointsOnLine()
getPointsOnLine returns an array of points which can be used to form the spherical line |
SpherePointModel |
getSecondPoint()
getSecondPoint returns the second point of this line |
abstract 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 obv,
java.lang.Object arg1)
|
Methods inherited from class backend.spheremodel.SphereMultiPointBase |
---|
getNumVerticies |
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 SphereLineModel(SpherePointModel fPoint, SpherePointModel sPoint, SphereModel theSphere)
fPoint
- is the first point of this linesPoint
- is the second point of this linetheSphere
- is the SphereModel to look afterMethod Detail |
---|
public abstract float getLength()
public SphereLineModel.LineType getLineType()
public SpherePointModel getFirstPoint()
public SpherePointModel getSecondPoint()
public java.util.ArrayList<javax.vecmath.Point3f> getIntersectionPoints(SphereLineModel checkMe, double sphereRadius)
checkMe
- The line to check againstsphereRadius
- The radius of the sphere the lines reside on
public boolean equals(java.lang.Object checkMe)
equals
in class java.lang.Object
public void update(java.util.Observable obv, java.lang.Object arg1)
update
in interface java.util.Observer
public abstract boolean isIntersectionPtOnLine(javax.vecmath.Point3f checkMe)
checkMe
- The point to check against this line
public javax.vecmath.Point3f[] getPointsOnLine()
getPointsOnLine
in class SphereMultiPointBase
public javax.vecmath.Vector3f getNormalVecToPlane()
CircleIntersection
getNormalVecToPlane
in interface CircleIntersection
public Line3f getLineFromCirc(javax.vecmath.Vector3f rotationAxis)
CircleIntersection
getLineFromCirc
in interface CircleIntersection
rotationAxis
- is the axis of rotation to use for rotating the all
important center point
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |