|
|||||||||
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.SphereCircleModel
public class SphereCircleModel
SphereCircleModel represents a circle on the sphere
Constructor Summary | |
---|---|
SphereCircleModel(SpherePointModel axisOfRot,
SpherePointModel radiusPoint)
The SphereCircleModel default constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object checkMe)
|
float |
getAngle()
getAngle will return the angle from the center point to the radius point |
SpherePointModel |
getCenterPoint()
getCenterPoint will return the point at the center of the circle |
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. |
javax.vecmath.Vector3f |
getNormalVecToPlane()
getNormalVecToPlane() should return a normal vector to the plane created by whatever class implements this interface. |
int |
getNumVerticies()
getNumVerticies will return the number of verticles this circle uses to draw |
javax.vecmath.Point3f[] |
getPointsOnLine()
getPointsOnLine will return the actual points that one can use to construct this line |
SpherePointModel |
getRadiusPoint()
getRadiusPoint will return the point at the edge of the circle |
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 |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereCircleModel(SpherePointModel axisOfRot, SpherePointModel radiusPoint)
axisOfRot
- the point to rotate about, otherwise known as the
center of the circleradiusPoint
- any given point on the outside edge of the circle so
we have a reference pointMethod Detail |
---|
public int getNumVerticies()
getNumVerticies
in class SphereMultiPointBase
public javax.vecmath.Point3f[] getPointsOnLine()
getPointsOnLine
in class SphereMultiPointBase
public boolean equals(java.lang.Object checkMe)
equals
in class java.lang.Object
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public SpherePointModel getCenterPoint()
public SpherePointModel getRadiusPoint()
public float getAngle()
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
public javax.vecmath.Vector3f getNormalVecToPlane()
CircleIntersection
getNormalVecToPlane
in interface CircleIntersection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |