java.lang.Object computational.geometry.raycrosssegmentset.RayCrossSegmentSet
public abstract class RayCrossSegmentSet
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 |
---|
protected LogManager history
protected java.util.Collection segments
Constructor Detail |
---|
public RayCrossSegmentSet()
public RayCrossSegmentSet(java.util.Collection segments)
public RayCrossSegmentSet(java.util.Collection segments, LogManager history)
Method Detail |
---|
public void addSegment(Segment s)
public abstract void checkPreconditions() throws PreconditionViolatedException
PreconditionViolatedException
public void clear()
public abstract Segment crossSegment(Ray r)
public void deleteSegment(Segment s)
public LogManager getLogManager()
public java.util.Collection getSegments()
public boolean isUpdated()
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)