java.lang.Objectcomputational.geometry.pointinpolygon.PointInConvexPolygon
public abstract class PointInConvexPolygon
| Field Summary | |
|---|---|
protected LogManager |
history
|
protected Polygon |
polygon
|
| Constructor Summary | |
|---|---|
PointInConvexPolygon()
CONSTRUCTORS |
|
PointInConvexPolygon(ConvexPolygon poly,
LogManager history)
|
|
| Method Summary | |
|---|---|
void |
addVertex(Point p,
Segment s)
|
void |
clear()
|
void |
deleteVertex(Point p)
|
LogManager |
getLogManager()
CONCRETE METHODS |
Polygon |
getPolygon()
|
abstract boolean |
inside(Point p)
ABSTRACTION |
boolean |
isUpdated()
|
void |
moveVertex(Point p,
int dx,
int dy)
|
void |
setLogManager(LogManager history)
|
void |
setPolygon(Polygon poly)
|
void |
setUpdated(boolean updated)
|
abstract void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LogManager history
protected Polygon polygon
| Constructor Detail |
|---|
public PointInConvexPolygon()
public PointInConvexPolygon(ConvexPolygon poly,
LogManager history)
| Method Detail |
|---|
public void addVertex(Point p,
Segment s)
throws SimplicityViolatedException,
ConvexityViolatedException
SimplicityViolatedException
ConvexityViolatedExceptionpublic void clear()
public void deleteVertex(Point p)
throws SimplicityViolatedException,
ConvexityViolatedException
SimplicityViolatedException
ConvexityViolatedExceptionpublic LogManager getLogManager()
public Polygon getPolygon()
public abstract boolean inside(Point p)
public boolean isUpdated()
public void moveVertex(Point p,
int dx,
int dy)
throws SimplicityViolatedException,
ConvexityViolatedException
SimplicityViolatedException
ConvexityViolatedExceptionpublic void setLogManager(LogManager history)
public void setPolygon(Polygon poly)
throws SimplicityViolatedException,
ConvexityViolatedException
SimplicityViolatedException
ConvexityViolatedExceptionpublic void setUpdated(boolean updated)
public abstract void update()