java.lang.Objectcomputational.geometry.segmentintersection.SegmentIntersection
public abstract class SegmentIntersection
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 |
---|
public static final int ALL_INTERSECTIONS
public static final int ANY_INTERSECTION
public static final int ANY_PROPER_INTERSECTION
protected LogManager history
protected java.util.Collection segments
Constructor Detail |
---|
public SegmentIntersection()
public SegmentIntersection(java.util.Collection segments)
public SegmentIntersection(java.util.Collection segments, LogManager history)
Method Detail |
---|
public void addSegment(Segment s)
public abstract java.util.Collection allIntersections()
public abstract boolean anyIntersection()
public abstract boolean anyProperIntersection()
public abstract void checkPreconditions(int query) throws PreconditionViolatedException
PreconditionViolatedException
public void clear()
public void deleteSegment(Segment s)
public LogManager getLogManager()
public java.util.Collection getSegments()
public boolean isUpdated(int query)
public void movePoint(Segment s, Point p, int dx, int dy)
public void moveSegment(Segment s, int dx, int dy)
public void setLogManager(LogManager history)
public void setUpdated(boolean updated)
public void setUpdated(int query, boolean updated)