ProGAL.geom2d
Class TriangulationFace

java.lang.Object
  extended by ProGAL.geom2d.TriangulationFace

public class TriangulationFace
extends java.lang.Object


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

TriangulationFace

public TriangulationFace(TriangulationVertex v0,
                         TriangulationVertex v1,
                         TriangulationVertex v2)

TriangulationFace

public TriangulationFace(TriangulationVertex v0,
                         TriangulationVertex v1,
                         TriangulationVertex v2,
                         J2DScene scene,
                         boolean testing)
Method Detail

killShapes

public void killShapes(J2DScene scene)

getCorner

public TriangulationVertex getCorner(int i)

getNeighbor

public TriangulationFace getNeighbor(int i)

getEdgeShape

public Shape getEdgeShape(int i)

setCircumCircle

public void setCircumCircle()

setCircumCircle

public void setCircumCircle(Circle c)

setCircumCircleCenterX

public void setCircumCircleCenterX(double x)

setCircumCircleCenterY

public void setCircumCircleCenterY(double y)

setCircumCircleRadius

public void setCircumCircleRadius(double r)

isAlive

public boolean isAlive()

hasShape

public boolean hasShape()

getCount

public int getCount()

getId

public int getId()

setId

public void setId(int id)

setNeighbor

public void setNeighbor(int indx,
                        TriangulationFace face)

setAlive

public void setAlive(boolean alive)

isFlat

public boolean isFlat()

hasLowestRotIndex

public boolean hasLowestRotIndex(TriangulationVertex v,
                                 java.util.List<java.lang.Integer> rotIndx,
                                 int size)

hasRotatingCorners

public boolean hasRotatingCorners(java.util.List<java.lang.Integer> rotIndx)

getTriangle

public Triangle getTriangle()

getCircumCircle

public Circle getCircumCircle()

getOppLine

public Line getOppLine(TriangulationVertex v)

getOppFace

public TriangulationFace getOppFace(TriangulationVertex v)
returns the face opposite the vertex v in this face, null if such face does not exist


hasVertex

public boolean hasVertex(TriangulationVertex v)
returns TRUE if the face has vertex v as one of its corners


getIndex

public int getIndex(TriangulationVertex v)
returns the index of the specified vertex in the face


getIndex

public int getIndex(TriangulationFace t)
returns the index of the specified neighbor face


getThirdVertex

public TriangulationVertex getThirdVertex(TriangulationVertex u,
                                          TriangulationVertex v)
returns third vertex of the face


getThirdVertex

public TriangulationVertex getThirdVertex(TriangulationFace face)
returns vertex of the face not in this.face


draw

public void draw(J2DScene scene,
                 java.awt.Color clr)

draw

public void draw(J2DScene scene)

draw

public void draw(J2DScene scene,
                 boolean testing)

drawCircumCircle

public Shape drawCircumCircle(J2DScene scene,
                              java.awt.Color clr)

drawRotatedCircumCircle

public Shape drawRotatedCircumCircle(J2DScene scene,
                                     java.awt.Color clr,
                                     double angle,
                                     java.util.List<java.lang.Integer> rotIndx)

hide

public void hide(J2DScene scene,
                 boolean testing)

hideCircumCircle

public void hideCircumCircle(J2DScene scene)

reshape

public void reshape(J2DScene scene,
                    boolean testing)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCorners

public TriangulationVertex[] getCorners()