backend.spheremodel
Class CircleIntersectionBase

java.lang.Object
  extended by backend.spheremodel.SphereIntrModel
      extended by backend.spheremodel.CircleIntersectionBase
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
SphereCircleIntrModel, SphereCircLineIntrModel

public abstract class CircleIntersectionBase
extends SphereIntrModel
implements java.util.Observer

CircleIntersectionBase should be implemented by classes wishing to handle the intersection of circles.


Constructor Summary
CircleIntersectionBase(SphereMultiPointBase pb1, SphereMultiPointBase pb2, SpherePointIntrModel point1, SpherePointIntrModel point2, SphereModel theModel)
          CircleIntersectionbase file reading constructor.
CircleIntersectionBase(SphereMultiPointBase pb1, SphereMultiPointBase pb2, SphereWorldModel myWorld)
          CircleIntersectionBase default constructor
 
Method Summary
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class backend.spheremodel.SphereIntrModel
equals, getFirstPoint, getFirstPointBase, getSecondPoint, getSecondPointBase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleIntersectionBase

public CircleIntersectionBase(SphereMultiPointBase pb1,
                              SphereMultiPointBase pb2,
                              SphereWorldModel myWorld)
CircleIntersectionBase default constructor

Parameters:
pb1 - is the first SphereMultiPointBase to be part of the intersection
pb2 - is the second SphereMultiPointBase to be part of the intersection
myWorld - is the SphereWorldModel this intersection will reside in.

CircleIntersectionBase

public CircleIntersectionBase(SphereMultiPointBase pb1,
                              SphereMultiPointBase pb2,
                              SpherePointIntrModel point1,
                              SpherePointIntrModel point2,
                              SphereModel theModel)
CircleIntersectionbase file reading constructor. The entire point of this constructor is to be used when reading in data from a file. Please do not use this constructor unless that is what you are doing!

Parameters:
pb1 - the first SphereMultiPointBase for this intersection
pb2 - the second SphereMultiPointBase for this intersection
point1 - the first point in the intersection
point2 - the second point in the intersection
theModel - should be the SphereModel this intersection is part of
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer