org.jcae.mesh.amibe.patch.tests
Class QuadTreeSample

java.lang.Object
  extended by org.jcae.mesh.amibe.patch.tests.QuadTreeSample
Direct Known Subclasses:
QuadTreeSampleAdd, QuadTreeSampleNearest, QuadTreeSampleRemove

public class QuadTreeSample
extends java.lang.Object

Utility class to write unit tests for the QuadTree class.


Field Summary
protected  KdTree quadtree
           
 
Constructor Summary
QuadTreeSample(KdTree q)
           
 
Method Summary
 BranchGroup bgQuadTree()
           
 BranchGroup bgVertices()
           
 BranchGroup segment(Vertex2D vt, Vertex2D vn, float depth, float r, float g, float b)
           
 void writeUNV(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quadtree

protected final KdTree quadtree
Constructor Detail

QuadTreeSample

public QuadTreeSample(KdTree q)
Method Detail

writeUNV

public void writeUNV(java.lang.String file)

bgQuadTree

public BranchGroup bgQuadTree()

bgVertices

public BranchGroup bgVertices()

segment

public BranchGroup segment(Vertex2D vt,
                           Vertex2D vn,
                           float depth,
                           float r,
                           float g,
                           float b)