fdubath.entrelacs
Class SegmentBuilder

java.lang.Object
  extended by fdubath.entrelacs.SegmentBuilder

public class SegmentBuilder
extends java.lang.Object

This class is used to compute intersection between the rope and prepare the lists of segment used to draw the ropes on the background geometry.


Field Summary
 java.util.ArrayList<Segment> intersectionList
          This segemnt list contains the patch filling the intersection between ropes.
 java.util.ArrayList<Segment> mirrorIntersectionList
          When the geometry has some miror border this segment liste contains the other flavore of the intersections between ropes.
 java.util.List ropeList
          The Rope list is an input parameter for the SegementBuider
 java.util.ArrayList<Segment> segmentList
          This segment list contains all the rope piece but the intersections.
 
Constructor Summary
SegmentBuilder()
           
 
Method Summary
 void generateSegmentList(BackgroundGeometry geometry)
          Compute the intersecion and generate the Segment lists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ropeList

public java.util.List ropeList
The Rope list is an input parameter for the SegementBuider


segmentList

public java.util.ArrayList<Segment> segmentList
This segment list contains all the rope piece but the intersections. Drawing solely these segments lead to an image which has hole in place of the intersections.


intersectionList

public java.util.ArrayList<Segment> intersectionList
This segemnt list contains the patch filling the intersection between ropes.


mirrorIntersectionList

public java.util.ArrayList<Segment> mirrorIntersectionList
When the geometry has some miror border this segment liste contains the other flavore of the intersections between ropes.

Constructor Detail

SegmentBuilder

public SegmentBuilder()
Method Detail

generateSegmentList

public void generateSegmentList(BackgroundGeometry geometry)
Compute the intersecion and generate the Segment lists

Parameters:
geometry - used to determin if the mirror intersections has to be computed.