org.jcae.mesh.amibe.util
Interface KdTreeProcedure


public interface KdTreeProcedure

Procedure to apply on all kd-tree cells.


Field Summary
static int ABORT
          Abort tree traversal immediately.
static int OK
          Continue tree traversal.
static int SKIPCHILD
          Do not process children.
 
Method Summary
 int action(java.lang.Object o, int s, int[] i0)
          Perform an action on the given kdtree cell.
 

Field Detail

OK

static final int OK
Continue tree traversal.

See Also:
Constant Field Values

ABORT

static final int ABORT
Abort tree traversal immediately.

See Also:
Constant Field Values

SKIPCHILD

static final int SKIPCHILD
Do not process children.

See Also:
Constant Field Values
Method Detail

action

int action(java.lang.Object o,
           int s,
           int[] i0)
Perform an action on the given kdtree cell. This method is called by KdTree.walk(KdTreeProcedure) on all cells of the kd-tree recursively.

Parameters:
o - kd-tree cell.
s - cell size.
i0 - coordinates of the bottom left corner of this cell.
Returns:
ABORT if walk processing must abort now, SKIPCHILD if node children have to be ignored, and OK to process node children recursively.