Index of all Fields and Methods
All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- ACTION_CLR.
Static variable in interface ep.cg.ActionListener
-
- ACTION_INT.
Static variable in interface ep.cg.ActionListener
-
- ACTION_QIT.
Static variable in interface ep.cg.ActionListener
-
- actionEvent(int).
Method in interface ep.cg.ActionListener
-
- actionEvent(int).
Method in class ep.cg.widgets.MainFrame
-
- actionEvent(int).
Method in class ep.cg.widgets.PolyCanvas
-
- ActionPanel(Image, Image, Image, Image).
Constructor for class ep.cg.widgets.ActionPanel
-
- add(Point).
Method in class ep.cg.Point
-
- addListener(ActionListener).
Method in class ep.cg.widgets.ActionPanel
-
- addListener(ActionListener).
Method in class ep.cg.widgets.MainFrame
-
- addListener(ModeChangeListener).
Method in class ep.cg.widgets.ModePanel
-
- addPoint(Point).
Method in class ep.cg.Polygon
- This method will throw a NonConvexPolygonException if the point added
would make the polygon intersect itself.
- addPointNoCheck(Point).
Method in class ep.cg.Polygon
- This method can be used to add a point without any convexity
check.
- addSeg(Segment).
Method in class ep.cg.Point
-
- ang1P_.
Variable in class ep.cg.XEngine
-
- ang2P_.
Variable in class ep.cg.XEngine
-
- buildXsect().
Method in class ep.cg.XEngine
-
- checkConvex(Point).
Method in class ep.cg.Polygon
- public boolean checkConvex(Point p) {
int idx = pts_.indexOf(p);
int siz = pts_.size();
int previdx, nextidx;
if (idx < 0) {
return false;
}
if (siz < 2)
return true;
if (idx == 0)
previdx = siz - 1;
else
previdx = idx - 1;
if (idx == siz -1)
nextidx = 0;
else
nextidx = idx + 1;
Point prev = (Point)pts_.elementAt(previdx);
Point next = (Point)pts_.elementAt(nextidx);
if ( siz > 2) {
int prevprevidx = 0, nextnextidx = 0;
if (previdx == 0)
prevprevidx = siz - 1;
else
prevprevidx = previdx - 1;
if (nextidx == siz - 1)
nextnextidx = 0;
else
nextnextidx = nextidx + 1;
Point prevprev = (Point)pts_.elementAt(prevprevidx);
Point nextnext = (Point)pts_.elementAt(nextnextidx);
Point pold = new Point(prev.x(),prev.y());
pold.minus(prevprev);
pold.normalize();
Point pnew = new Point(p.x(), p.y());
pnew.minus(prev);
pnew.normalize();
double a = pold.x()*pnew.x() + pold.y()*pnew.y();
System.out.println("Angle is "+ ((Math.acos(a)/(2*Math.PI))*360) );
}
return true;
}
- checkNewConvex(double, double).
Method in class ep.cg.Polygon
- This method checks if adding p to the polygon would keep it
convex.
- checkNewConvex(Point).
Method in class ep.cg.Polygon
-
- clrSegs().
Method in class ep.cg.Point
-
- ColinearPointsException().
Constructor for class ep.cg.ColinearPointsException
-
- computeCHinit().
Method in class ep.cg.XEngine
- Returns false if the polygons don't have enough points (min 3 each)
- computeCHstep().
Method in class ep.cg.XEngine
- Returns true when CH is found.
- computeNextXSection().
Method in class ep.cg.XEngine
- Returns TRUE if a next intersection was computed,
or false if there are no more intersections (or there are
no intersections at all).
- curPt1_.
Variable in class ep.cg.XEngine
-
- curPt2_.
Variable in class ep.cg.XEngine
-
- delPoint(Point).
Method in class ep.cg.Polygon
- Deletes a point.
- dist(Point).
Method in class ep.cg.Point
-
- DONE.
Static variable in class ep.cg.XEngine
-
- equals(Point).
Method in class ep.cg.Point
-
- equals(Segment).
Method in class ep.cg.Segment
-
- fwIsXchain().
Method in class ep.cg.Point
-
- fwIsXchain(boolean).
Method in class ep.cg.Point
-
- getCurPocketPos().
Method in class ep.cg.XEngine
-
- getCurPocketSz().
Method in class ep.cg.XEngine
- Returns square bbox of last xsection.
- getIdent().
Method in class ep.cg.Point
- Returns the identity of the point.
- getIdent().
Method in class ep.cg.Polygon
-
- getIdent().
Method in class ep.cg.Segment
-
- getNbPoints().
Method in class ep.cg.XEngine
- Return the total number of points, not accounting for the fact
that most points on the intersection polygon will be repeated
in the two original polygons.
- getP1().
Method in class ep.cg.Segment
-
- getP2().
Method in class ep.cg.Segment
-
- getPoint(int).
Method in class ep.cg.Polygon
- Returns the point i of the polygon, where i e [0,n-1]
- getPoint(int).
Method in class ep.cg.XEngine
-
- getSeg(int).
Method in class ep.cg.Point
- Returns one of the segments originating from this point.
- ident_.
Variable in class ep.cg.Point
-
- initTriang().
Method in class ep.cg.XEngine
-
- LOOPERR.
Static variable in class ep.cg.XEngine
-
- MainFrame(ModePanel, ActionPanel, PolyCanvas).
Constructor for class ep.cg.widgets.MainFrame
-
- minimumSize().
Method in class ep.cg.widgets.ActionPanel
-
- minimumSize().
Method in class ep.cg.widgets.ModePanel
-
- minus(Point).
Method in class ep.cg.Point
-
- minus(Point, Point).
Static method in class ep.cg.Point
- Substracts point p2 from p1 and returns a new point.
- MODE_ADD1.
Static variable in interface ep.cg.ModeConstants
-
- MODE_ADD2.
Static variable in interface ep.cg.ModeConstants
-
- MODE_DEL.
Static variable in interface ep.cg.ModeConstants
-
- MODE_EDIT.
Static variable in interface ep.cg.ModeConstants
-
- modeChangeEvent(int).
Method in interface ep.cg.ModeChangeListener
-
- modeChangeEvent(int).
Method in class ep.cg.widgets.PolyCanvas
-
- ModePanel(Image, Image, Image, Image).
Constructor for class ep.cg.widgets.ModePanel
-
- mouseCancel().
Method in class ep.cg.XEngine
-
- mouseDown(double, double).
Method in class ep.cg.XEngine
-
- mouseDown(Event, int, int).
Method in class ep.cg.widgets.ActionPanel
-
- mouseDown(Event, int, int).
Method in class ep.cg.widgets.ModePanel
-
- mouseDown(Event, int, int).
Method in class ep.cg.widgets.PolyCanvas
-
- mouseDrag(double, double).
Method in class ep.cg.XEngine
-
- mouseDrag(Event, int, int).
Method in class ep.cg.widgets.ActionPanel
-
- mouseDrag(Event, int, int).
Method in class ep.cg.widgets.ModePanel
-
- mouseDrag(Event, int, int).
Method in class ep.cg.widgets.PolyCanvas
-
- mouseExit(Event, int, int).
Method in class ep.cg.widgets.ActionPanel
-
- mouseExit(Event, int, int).
Method in class ep.cg.widgets.ModePanel
-
- mouseExit(Event, int, int).
Method in class ep.cg.widgets.PolyCanvas
-
- mouseUp(double, double).
Method in class ep.cg.XEngine
-
- mouseUp(Event, int, int).
Method in class ep.cg.widgets.ActionPanel
-
- mouseUp(Event, int, int).
Method in class ep.cg.widgets.ModePanel
-
- mouseUp(Event, int, int).
Method in class ep.cg.widgets.PolyCanvas
-
- nbSegs().
Method in class ep.cg.Point
- Returns the number of segments which originate from
this point.
- NonConvexPolygonException().
Constructor for class ep.cg.NonConvexPolygonException
-
- normalize().
Method in class ep.cg.Point
- Consider the point as a vector and normalize it.
- notifyListeners(int).
Method in class ep.cg.widgets.ActionPanel
-
- notifyListeners(int).
Method in class ep.cg.widgets.MainFrame
-
- notifyListeners(int).
Method in class ep.cg.widgets.ModePanel
-
- NOXERR.
Static variable in class ep.cg.XEngine
-
- OK.
Static variable in class ep.cg.XEngine
-
- ON.
Static variable in class ep.cg.Side
-
- ORIGIN.
Static variable in class ep.cg.Point
-
- OVER.
Static variable in class ep.cg.Side
-
- paint(Graphics).
Method in class ep.cg.widgets.ActionPanel
-
- paint(Graphics).
Method in class ep.cg.widgets.ModePanel
-
- paint(Graphics).
Method in class ep.cg.widgets.PolyCanvas
-
- Point().
Constructor for class ep.cg.Point
-
- Point(double, double).
Constructor for class ep.cg.Point
-
- Point(double, double, Segment).
Constructor for class ep.cg.Point
-
- PolyCanvas().
Constructor for class ep.cg.widgets.PolyCanvas
-
- PolyCanvas(Image, Image, Image).
Constructor for class ep.cg.widgets.PolyCanvas
-
- Polygon().
Constructor for class ep.cg.Polygon
-
- preferredSize().
Method in class ep.cg.widgets.ActionPanel
-
- preferredSize().
Method in class ep.cg.widgets.ModePanel
-
- pts_.
Variable in class ep.cg.Polygon
-
- rebuildPolygon(Polygon).
Method in class ep.cg.XEngine
-
- removeListener(ActionListener).
Method in class ep.cg.widgets.ActionPanel
-
- removeListener(ActionListener).
Method in class ep.cg.widgets.MainFrame
-
- removeListener(ModeChangeListener).
Method in class ep.cg.widgets.ModePanel
-
- remSeg(int).
Method in class ep.cg.Point
-
- remSeg(Point).
Method in class ep.cg.Point
-
- remSeg(Point, int).
Method in class ep.cg.Point
-
- remSeg(Segment).
Method in class ep.cg.Point
-
- reset().
Method in class ep.cg.widgets.PolyCanvas
-
- reset().
Method in class ep.cg.XEngine
-
- resetTriang().
Method in class ep.cg.XEngine
-
- run().
Method in class ep.cg.widgets.PolyCanvas
-
- rvIsXchain().
Method in class ep.cg.Point
-
- rvIsXchain(boolean).
Method in class ep.cg.Point
-
- scale(double).
Method in class ep.cg.Point
- Scale the point by s about the origin.
- Segment(Point, Point, int).
Constructor for class ep.cg.Segment
-
- segments_.
Variable in class ep.cg.Point
- The set of segments which originate from this point.
- setIdent(int).
Method in class ep.cg.Point
-
- setIdent(int).
Method in class ep.cg.Polygon
-
- setIdent(int).
Method in class ep.cg.Segment
-
- setMode(int).
Method in class ep.cg.XEngine
-
- Side().
Constructor for class ep.cg.Side
-
- size().
Method in class ep.cg.Polygon
- Returns number of points in poly.
- toString().
Method in class ep.cg.Point
-
- toString().
Method in class ep.cg.Polygon
-
- toString().
Method in class ep.cg.Segment
-
- UNDEF.
Static variable in class ep.cg.Point
-
- UNDER.
Static variable in class ep.cg.Side
-
- update(Graphics).
Method in class ep.cg.widgets.ActionPanel
-
- update(Graphics).
Method in class ep.cg.widgets.ModePanel
-
- update(Graphics).
Method in class ep.cg.widgets.PolyCanvas
-
- whichSide(Point, Point, Point).
Static method in class ep.cg.Side
- Determines on which side of p1p2 lies p.
- x().
Method in class ep.cg.Point
-
- x(double).
Method in class ep.cg.Point
-
- x_.
Variable in class ep.cg.Point
-
- XEngine().
Constructor for class ep.cg.XEngine
-
- xSectionBuilt().
Method in class ep.cg.XEngine
-
- y().
Method in class ep.cg.Point
-
- y(double).
Method in class ep.cg.Point
-
- y_.
Variable in class ep.cg.Point
-