fdubath.entrelacs.tilling
Class TillingBackgroundGeometry

java.lang.Object
  extended by fdubath.entrelacs.BackgroundGeometry
      extended by fdubath.entrelacs.tilling.TillingBackgroundGeometry
Direct Known Subclasses:
TillingP31mBackgroundGeometry, TillingP3BackgroundGeometry, TillingP3m1BackgroundGeometry, TillingP4BackgroundGeometry, TillingP4mBackgroundGeometry, TillingP6BackgroundGeometry, TillingP6mBackgroundGeometry

public abstract class TillingBackgroundGeometry
extends BackgroundGeometry

Base class for the Tilling geometry.


Field Summary
 Drawer drawer
          The 'drawer' must be defind in order to allow the geometry to draw its ropes.
 
Fields inherited from class fdubath.entrelacs.BackgroundGeometry
verbose
 
Constructor Summary
TillingBackgroundGeometry()
           
 
Method Summary
 void computeSegments()
          Cause the Geometry to compute the Rope intersections and the segments needed to draw the ropes.
 void draw(int[] origine, int[] clipSize, double geometryUnit)
          Call to this method cause the computation of the intersections and segments and the drawing of the ropes.
 
Methods inherited from class fdubath.entrelacs.BackgroundGeometry
addLoopRope, addRopeOnMirorBorder, addVertex, addVertexToRope, deleteRope, deleteVertex, geometryName, getBorderTangentVector, getIdentifiedBorderRotationAngle, getReadOnlyRopexList, getReadOnlyVertexList, getVertexImagePosition, hasIdentifiedBorder, hasMirorBorder, isInside, moveVertex, numberOfVertexImages, placeInside, placeOnIdentifiedBorder, placeOnMirorBorder, removeVertexfromRope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drawer

public Drawer drawer
The 'drawer' must be defind in order to allow the geometry to draw its ropes.

Constructor Detail

TillingBackgroundGeometry

public TillingBackgroundGeometry()
Method Detail

draw

public void draw(int[] origine,
                 int[] clipSize,
                 double geometryUnit)
Call to this method cause the computation of the intersections and segments and the drawing of the ropes. The geometry zone is replicated (according to its symetry) in order to fill the clipSize. Note that the direction of the drawing has vertical axis inverted with respect to screen coordinate (that is if you have a window with size(100,200) you should set the clip size to (100,200) and set the origine to (0,200)). Note also that the effective drawing fill the clip zone but is not restricted to it (some drawing are done outside of this sone).


computeSegments

public void computeSegments()
Cause the Geometry to compute the Rope intersections and the segments needed to draw the ropes. When using the draw() method there is no need to call computeSegments() -- this method is only exposed as a 'hook' possibility.