com.babaroga.test.packing
Class MinimumBoundsGenerator

java.lang.Object
  extended by com.babaroga.test.packing.BoundsGenerator
      extended by com.babaroga.test.packing.MinimumBoundsGenerator
Direct Known Subclasses:
MinimumPowOf2BoundsGenerator

public class MinimumBoundsGenerator
extends BoundsGenerator

Generates bounding rectangles that are potentially minimal bounding rectangles.


Constructor Summary
MinimumBoundsGenerator(boolean fastSearch)
          Constructs a MinimumBoundsGenerator.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class com.babaroga.test.packing.BoundsGenerator
getBounds, getNumBoundsTested, getPackedRectangles, pack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinimumBoundsGenerator

public MinimumBoundsGenerator(boolean fastSearch)
Constructs a MinimumBoundsGenerator.

Parameters:
fastSearch - If true an attempt will be made to lower the number of generated bounds at the expense of generating the most optimal bounds.
Method Detail

toString

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