edu.mines.jtk.mesh
Class TriMesh.NodeStepList

java.lang.Object
  extended by edu.mines.jtk.mesh.TriMesh.NodeStepList
Enclosing class:
TriMesh

public static class TriMesh.NodeStepList
extends java.lang.Object

A dynamically growing list of nodes and steps. Such a list may be, for example, the result of a search for node nabors within a specified maximum number of steps of a specified node.


Constructor Summary
TriMesh.NodeStepList()
           
 
Method Summary
 void add(TriMesh.Node node, int step)
          Appends the specified node and step to this list.
 void clear()
          Removes all nodes (and steps) from this list.
 int nnode()
          Returns the number of nodes (and steps) in this list.
 TriMesh.Node[] nodes()
          Returns (by reference) the array of nodes in this list.
 int[] steps()
          Returns (by reference) the array of steps in this list.
 void trim()
          Trims this list so that its array length equals the number of nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriMesh.NodeStepList

public TriMesh.NodeStepList()
Method Detail

add

public final void add(TriMesh.Node node,
                      int step)
Appends the specified node and step to this list.

Parameters:
node - the node to append.

trim

public final void trim()
Trims this list so that its array length equals the number of nodes.


clear

public final void clear()
Removes all nodes (and steps) from this list.


nnode

public final int nnode()
Returns the number of nodes (and steps) in this list.

Returns:
the number of nodes.

nodes

public final TriMesh.Node[] nodes()
Returns (by reference) the array of nodes in this list.

Returns:
the array of nodes.

steps

public final int[] steps()
Returns (by reference) the array of steps in this list.

Returns:
the array of steps.