net.nexttext.renderer.util
Class TriangulationVertex

java.lang.Object
  extended by net.nexttext.renderer.util.PlanarVertex
      extended by net.nexttext.renderer.util.TriangulationVertex

public class TriangulationVertex
extends PlanarVertex

Used to do a triangulation of a complex polygon. Please note that you should make sure all of these vertices are two-manifold, if they are not the triangulation will fail with nullpointers.

Author:
emanuel

Nested Class Summary
static class TriangulationVertex.VertexType
          Vertex type enumeration.
 
Field Summary
 boolean is_left_chain
           
 
Method Summary
 boolean checkAllEdges()
          Check if all edges are ok.
 TriangulationEdge getInGoingEdge()
          This method returns the first and best real edge going in to this vertex, there should be only one before the triangulation.
 TriangulationEdge getOutGoingEdge()
          This method returns the first and best real edge going out of this vertex, there should be only one before the triangulation.
 void initializeType()
          Initialize vertex type.
 java.lang.String toString()
           
 
Methods inherited from class net.nexttext.renderer.util.PlanarVertex
getIndex, getPoint, printEdges
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

is_left_chain

public boolean is_left_chain
Method Detail

toString

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

initializeType

public void initializeType()
Initialize vertex type.


checkAllEdges

public boolean checkAllEdges()
Check if all edges are ok.

Returns:
true if ok

getOutGoingEdge

public TriangulationEdge getOutGoingEdge()
This method returns the first and best real edge going out of this vertex, there should be only one before the triangulation.

Returns:
edge

getInGoingEdge

public TriangulationEdge getInGoingEdge()
This method returns the first and best real edge going in to this vertex, there should be only one before the triangulation.

Returns:
edge