org.reprap.geometry.polygons
Class AllSTLsToBuild.SliceCache

java.lang.Object
  extended by org.reprap.geometry.polygons.AllSTLsToBuild.SliceCache
Enclosing class:
AllSTLsToBuild

 class AllSTLsToBuild.SliceCache
extends java.lang.Object

Ring buffer cache to hold previously computed slices for doing infill and support material calculations.

Author:
ensab

Field Summary
private  int[] layerNumber
           
private  int noLayer
           
private  int ringPointer
           
private  int ringSize
           
private  BooleanGridList[][] sliceRing
           
private  BooleanGridList[][] supportRing
           
 
Constructor Summary
AllSTLsToBuild.SliceCache()
           
 
Method Summary
 BooleanGridList getSlice(int layer, int stl)
           
 BooleanGridList getSupport(int layer, int stl)
           
private  int getTheRingLocationForRead(int layer)
           
private  int getTheRingLocationForWrite(int layer)
           
 void setSlice(BooleanGridList slice, int layer, int stl)
           
 void setSupport(BooleanGridList support, int layer, int stl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sliceRing

private BooleanGridList[][] sliceRing

supportRing

private BooleanGridList[][] supportRing

layerNumber

private int[] layerNumber

ringPointer

private int ringPointer

noLayer

private final int noLayer
See Also:
Constant Field Values

ringSize

private final int ringSize
See Also:
Constant Field Values
Constructor Detail

AllSTLsToBuild.SliceCache

public AllSTLsToBuild.SliceCache()
Method Detail

getTheRingLocationForWrite

private int getTheRingLocationForWrite(int layer)

setSlice

public void setSlice(BooleanGridList slice,
                     int layer,
                     int stl)

setSupport

public void setSupport(BooleanGridList support,
                       int layer,
                       int stl)

getTheRingLocationForRead

private int getTheRingLocationForRead(int layer)

getSlice

public BooleanGridList getSlice(int layer,
                                int stl)

getSupport

public BooleanGridList getSupport(int layer,
                                  int stl)