computational.geometry.raycrosssegmentset
Class RayCrossSegmentSet

java.lang.Object
  extended by computational.geometry.raycrosssegmentset.RayCrossSegmentSet
Direct Known Subclasses:
BSPTreeRayCrossSegmentSet, SlowRayCrossSegmentSet

public abstract class RayCrossSegmentSet
extends java.lang.Object


Field Summary
protected  LogManager history
           
protected  java.util.Collection segments
           
 
Constructor Summary
RayCrossSegmentSet()
          CONSTRUCTORS
RayCrossSegmentSet(java.util.Collection segments)
           
RayCrossSegmentSet(java.util.Collection segments, LogManager history)
           
 
Method Summary
 void addSegment(Segment s)
           
abstract  void checkPreconditions()
          ABSTRACTION
 void clear()
           
abstract  Segment crossSegment(Ray r)
           
 void deleteSegment(Segment s)
           
 LogManager getLogManager()
          CONCRETE METHODS
 java.util.Collection getSegments()
           
 boolean isUpdated()
           
 void movePoint(Segment s, Point p, int dx, int dy)
           
 void moveSegment(Segment s, int dx, int dy)
           
 void setLogManager(LogManager history)
           
 void setUpdated(boolean updated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

history

protected LogManager history

segments

protected java.util.Collection segments
Constructor Detail

RayCrossSegmentSet

public RayCrossSegmentSet()
CONSTRUCTORS


RayCrossSegmentSet

public RayCrossSegmentSet(java.util.Collection segments)

RayCrossSegmentSet

public RayCrossSegmentSet(java.util.Collection segments,
                          LogManager history)
Method Detail

addSegment

public void addSegment(Segment s)

checkPreconditions

public abstract void checkPreconditions()
                                 throws PreconditionViolatedException
ABSTRACTION

Throws:
PreconditionViolatedException

clear

public void clear()

crossSegment

public abstract Segment crossSegment(Ray r)

deleteSegment

public void deleteSegment(Segment s)

getLogManager

public LogManager getLogManager()
CONCRETE METHODS


getSegments

public java.util.Collection getSegments()

isUpdated

public boolean isUpdated()

movePoint

public void movePoint(Segment s,
                      Point p,
                      int dx,
                      int dy)

moveSegment

public void moveSegment(Segment s,
                        int dx,
                        int dy)

setLogManager

public void setLogManager(LogManager history)

setUpdated

public void setUpdated(boolean updated)