Class VOIManager.TreeNode

java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.VOI.VOIManager.TreeNode
Enclosing class:
VOIManager

public class VOIManager.TreeNode extends Object
Tree node. Contains data (the integer position and float cost) and pointers to the left and right children.
  • Field Details

    • cost

      public float cost
      Cost of position.
    • left

      public VOIManager.TreeNode left
      Node to the left in the tree.
    • position

      public int position
      Position in array seededCosts.
  • Constructor Details

    • TreeNode

      public TreeNode(int position, float cost)
      Creates a new tree node with the given data.
      Parameters:
      position - Position in array seededCosts.
      cost - Cost of node.
  • Method Details

    • toString

      public String toString()
      Returns readable representation of this node.
      Overrides:
      toString in class Object
      Returns:
      Readable representation of node.