|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.geom2d.TriangulationFace
public class TriangulationFace
Constructor Summary | |
---|---|
TriangulationFace(TriangulationVertex v0,
TriangulationVertex v1,
TriangulationVertex v2)
|
|
TriangulationFace(TriangulationVertex v0,
TriangulationVertex v1,
TriangulationVertex v2,
J2DScene scene,
boolean testing)
|
Method Summary | |
---|---|
void |
draw(J2DScene scene)
|
void |
draw(J2DScene scene,
boolean testing)
|
void |
draw(J2DScene scene,
java.awt.Color clr)
|
Shape |
drawCircumCircle(J2DScene scene,
java.awt.Color clr)
|
Shape |
drawRotatedCircumCircle(J2DScene scene,
java.awt.Color clr,
double angle,
java.util.List<java.lang.Integer> rotIndx)
|
Circle |
getCircumCircle()
|
TriangulationVertex |
getCorner(int i)
|
TriangulationVertex[] |
getCorners()
|
int |
getCount()
|
Shape |
getEdgeShape(int i)
|
int |
getId()
|
int |
getIndex(TriangulationFace t)
returns the index of the specified neighbor face |
int |
getIndex(TriangulationVertex v)
returns the index of the specified vertex in the face |
TriangulationFace |
getNeighbor(int i)
|
TriangulationFace |
getOppFace(TriangulationVertex v)
returns the face opposite the vertex v in this face, null if such face does not exist |
Line |
getOppLine(TriangulationVertex v)
|
TriangulationVertex |
getThirdVertex(TriangulationFace face)
returns vertex of the face not in this.face |
TriangulationVertex |
getThirdVertex(TriangulationVertex u,
TriangulationVertex v)
returns third vertex of the face |
Triangle |
getTriangle()
|
boolean |
hasLowestRotIndex(TriangulationVertex v,
java.util.List<java.lang.Integer> rotIndx,
int size)
|
boolean |
hasRotatingCorners(java.util.List<java.lang.Integer> rotIndx)
|
boolean |
hasShape()
|
boolean |
hasVertex(TriangulationVertex v)
returns TRUE if the face has vertex v as one of its corners |
void |
hide(J2DScene scene,
boolean testing)
|
void |
hideCircumCircle(J2DScene scene)
|
boolean |
isAlive()
|
boolean |
isFlat()
|
void |
killShapes(J2DScene scene)
|
void |
reshape(J2DScene scene,
boolean testing)
|
void |
setAlive(boolean alive)
|
void |
setCircumCircle()
|
void |
setCircumCircle(Circle c)
|
void |
setCircumCircleCenterX(double x)
|
void |
setCircumCircleCenterY(double y)
|
void |
setCircumCircleRadius(double r)
|
void |
setId(int id)
|
void |
setNeighbor(int indx,
TriangulationFace face)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TriangulationFace(TriangulationVertex v0, TriangulationVertex v1, TriangulationVertex v2)
public TriangulationFace(TriangulationVertex v0, TriangulationVertex v1, TriangulationVertex v2, J2DScene scene, boolean testing)
Method Detail |
---|
public void killShapes(J2DScene scene)
public TriangulationVertex getCorner(int i)
public TriangulationFace getNeighbor(int i)
public Shape getEdgeShape(int i)
public void setCircumCircle()
public void setCircumCircle(Circle c)
public void setCircumCircleCenterX(double x)
public void setCircumCircleCenterY(double y)
public void setCircumCircleRadius(double r)
public boolean isAlive()
public boolean hasShape()
public int getCount()
public int getId()
public void setId(int id)
public void setNeighbor(int indx, TriangulationFace face)
public void setAlive(boolean alive)
public boolean isFlat()
public boolean hasLowestRotIndex(TriangulationVertex v, java.util.List<java.lang.Integer> rotIndx, int size)
public boolean hasRotatingCorners(java.util.List<java.lang.Integer> rotIndx)
public Triangle getTriangle()
public Circle getCircumCircle()
public Line getOppLine(TriangulationVertex v)
public TriangulationFace getOppFace(TriangulationVertex v)
public boolean hasVertex(TriangulationVertex v)
public int getIndex(TriangulationVertex v)
public int getIndex(TriangulationFace t)
public TriangulationVertex getThirdVertex(TriangulationVertex u, TriangulationVertex v)
public TriangulationVertex getThirdVertex(TriangulationFace face)
public void draw(J2DScene scene, java.awt.Color clr)
public void draw(J2DScene scene)
public void draw(J2DScene scene, boolean testing)
public Shape drawCircumCircle(J2DScene scene, java.awt.Color clr)
public Shape drawRotatedCircumCircle(J2DScene scene, java.awt.Color clr, double angle, java.util.List<java.lang.Integer> rotIndx)
public void hide(J2DScene scene, boolean testing)
public void hideCircumCircle(J2DScene scene)
public void reshape(J2DScene scene, boolean testing)
public java.lang.String toString()
toString
in class java.lang.Object
public TriangulationVertex[] getCorners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |