org.openmali.spatial.octree
Interface OcCallback<T>


public interface OcCallback<T>

Simple interface used to handle callbacks when traversing an OcTree.

Author:
David Yazel, Marvin Froehlich (aka Qudus) [code cleaning]

Method Summary
 void done()
          Called when the traversal is complete.
 void hit(Visibility visibility, OcNode<T> node)
          Called when the octree traversal picks a node.
 

Method Detail

hit

void hit(Visibility visibility,
         OcNode<T> node)
Called when the octree traversal picks a node.

Parameters:
visibility - NO_CLIP, SOME_CLIP, NOT_VISIBLE
node - The node picked by the OcCuller

done

void done()
Called when the traversal is complete. This can be used to sort the nodes or perform any additional post processing.