computational.geometry.pointinpolygon
Class PointInConvexPolygon

java.lang.Object
  extended by computational.geometry.pointinpolygon.PointInConvexPolygon
Direct Known Subclasses:
FastPointInConvexPolygon, PointInSimplePolygon, SlowPointInConvexPolygon

public abstract class PointInConvexPolygon
extends java.lang.Object


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

history

protected LogManager history

polygon

protected Polygon polygon
Constructor Detail

PointInConvexPolygon

public PointInConvexPolygon()
CONSTRUCTORS


PointInConvexPolygon

public PointInConvexPolygon(ConvexPolygon poly,
                            LogManager history)
Method Detail

addVertex

public void addVertex(Point p,
                      Segment s)
               throws SimplicityViolatedException,
                      ConvexityViolatedException
Throws:
SimplicityViolatedException
ConvexityViolatedException

clear

public void clear()

deleteVertex

public void deleteVertex(Point p)
                  throws SimplicityViolatedException,
                         ConvexityViolatedException
Throws:
SimplicityViolatedException
ConvexityViolatedException

getLogManager

public LogManager getLogManager()
CONCRETE METHODS


getPolygon

public Polygon getPolygon()

inside

public abstract boolean inside(Point p)
ABSTRACTION


isUpdated

public boolean isUpdated()

moveVertex

public void moveVertex(Point p,
                       int dx,
                       int dy)
                throws SimplicityViolatedException,
                       ConvexityViolatedException
Throws:
SimplicityViolatedException
ConvexityViolatedException

setLogManager

public void setLogManager(LogManager history)

setPolygon

public void setPolygon(Polygon poly)
                throws SimplicityViolatedException,
                       ConvexityViolatedException
Throws:
SimplicityViolatedException
ConvexityViolatedException

setUpdated

public void setUpdated(boolean updated)

update

public abstract void update()