backend.spheremodel
Class SpherePointIntrModel
java.lang.Object
java.util.Observable
backend.spheremodel.SphereBasicObject
backend.spheremodel.SpherePointModel
backend.spheremodel.SpherePointIntrModel
public class SpherePointIntrModel
- extends SpherePointModel
The SpherePointIntrModel class is internally used by the
SphereLineIntersectionModel because these points should only be moved under
certain circumstances. This is all controlled by the
SphereLineIntersectionModel This class is a simple extention of
SpherePointModel but it is essential that the user not be allowed to directly
move a point of intersection.
Constructor Summary |
SpherePointIntrModel(float x,
float y,
float z,
SphereIntrModel theIntr)
This SpherePointIntrModel constructor is the one that should be used
under normal circumstances |
SpherePointIntrModel(float x,
float y,
float z,
java.lang.String label)
This SpherePointIntrModel constructor should be used when reading
information in from a file otherwise this constructor is not really all
that help. |
Method Summary |
SphereIntrModel |
getIntersection()
getIntersection will return the SphereLineIntrModel that this is a part
of |
void |
setIntersection(SphereIntrModel newIntr)
setIntersection will set this point to be part of the
SphereLineIntrModel provided this function is DANGEROUS because if you
set the point to the wrong intersection model removal of points will
break. |
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 |
SpherePointIntrModel
public SpherePointIntrModel(float x,
float y,
float z,
SphereIntrModel theIntr)
- This SpherePointIntrModel constructor is the one that should be used
under normal circumstances
- Parameters:
x
- is the x coordinate for this pointy
- is the y coordinate for this pointz
- is the z coordinate for this pointtheIntr
- is the SphereLineIntrModel we are working with
SpherePointIntrModel
public SpherePointIntrModel(float x,
float y,
float z,
java.lang.String label)
- This SpherePointIntrModel constructor should be used when reading
information in from a file otherwise this constructor is not really all
that help. Notice that if you use this constructor you must manually
assign a SphereLineIntrModel to it later on, or it will not work
correctly! You can use the setIntersection function to set a
SphereLineIntrModel for this point
- Parameters:
x
- is the x coordinate for this pointy
- is the y coordinate for this pointz
- is the z coordinate for this pointlabel
- is the label for this point
getIntersection
public SphereIntrModel getIntersection()
- getIntersection will return the SphereLineIntrModel that this is a part
of
- Returns:
- the SphereLineIntrModel this point is a part of
setIntersection
public void setIntersection(SphereIntrModel newIntr)
- setIntersection will set this point to be part of the
SphereLineIntrModel provided this function is DANGEROUS because if you
set the point to the wrong intersection model removal of points will
break. This should only be used by the part of the program which reads
spheres in from disk. You are only allowed to call this function once and
only if you used the constructor which allows you to not be part of an
intersection model. DO NOT try and hack around these issues! it was
intentional to keep you from shooting yourself in the foot, so to speak.