computational.geometry.segmentintersection
Class SegmentIntersection

java.lang.Object
  extended by computational.geometry.segmentintersection.SegmentIntersection
Direct Known Subclasses:
SlowSegmentIntersection, SweepingLine

public abstract class SegmentIntersection
extends java.lang.Object


Field Summary
static int ALL_INTERSECTIONS
           
static int ANY_INTERSECTION
           
static int ANY_PROPER_INTERSECTION
           
protected  LogManager history
           
protected  java.util.Collection segments
           
 
Constructor Summary
SegmentIntersection()
          CONSTRUCTORS
SegmentIntersection(java.util.Collection segments)
           
SegmentIntersection(java.util.Collection segments, LogManager history)
           
 
Method Summary
 void addSegment(Segment s)
           
abstract  java.util.Collection allIntersections()
           
abstract  boolean anyIntersection()
           
abstract  boolean anyProperIntersection()
           
abstract  void checkPreconditions(int query)
          ABSTRACTION
 void clear()
           
 void deleteSegment(Segment s)
           
 LogManager getLogManager()
          CONCRETE METHODS
 java.util.Collection getSegments()
           
 boolean isUpdated(int query)
           
 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)
           
 void setUpdated(int query, boolean updated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_INTERSECTIONS

public static final int ALL_INTERSECTIONS
See Also:
Constant Field Values

ANY_INTERSECTION

public static final int ANY_INTERSECTION
See Also:
Constant Field Values

ANY_PROPER_INTERSECTION

public static final int ANY_PROPER_INTERSECTION
See Also:
Constant Field Values

history

protected LogManager history

segments

protected java.util.Collection segments
Constructor Detail

SegmentIntersection

public SegmentIntersection()
CONSTRUCTORS


SegmentIntersection

public SegmentIntersection(java.util.Collection segments)

SegmentIntersection

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

addSegment

public void addSegment(Segment s)

allIntersections

public abstract java.util.Collection allIntersections()

anyIntersection

public abstract boolean anyIntersection()

anyProperIntersection

public abstract boolean anyProperIntersection()

checkPreconditions

public abstract void checkPreconditions(int query)
                                 throws PreconditionViolatedException
ABSTRACTION

Throws:
PreconditionViolatedException

clear

public void clear()

deleteSegment

public void deleteSegment(Segment s)

getLogManager

public LogManager getLogManager()
CONCRETE METHODS


getSegments

public java.util.Collection getSegments()

isUpdated

public boolean isUpdated(int query)

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)

setUpdated

public void setUpdated(int query,
                       boolean updated)