javax.media.j3d
Class BHNode

java.lang.Object
  extended by javax.media.j3d.BHNode
Direct Known Subclasses:
BHInternalNode, BHLeafNode

abstract class BHNode
extends java.lang.Object


Field Summary
(package private) static byte BH_TYPE_INTERNAL
           
(package private) static byte BH_TYPE_LEAF
           
(package private)  BoundingBox bHull
           
(package private) static boolean debug
           
(package private) static boolean debug2
           
(package private)  boolean mark
           
(package private)  byte nodeType
           
(package private) static int NUMBER_OF_PLANES
           
(package private)  BHNode parent
           
 
Constructor Summary
BHNode()
           
BHNode(BHNode parent)
           
BHNode(BHNode parent, BoundingBox bHull)
           
 
Method Summary
(package private)  void combineBHull(BHNode node1, BHNode node2)
           
(package private)  float computeAverageLeafDepth(int numberOfLeaves, int currentDepth)
           
(package private) abstract  void computeBoundingHull()
           
(package private)  int computeMaxDepth(int currentDepth)
           
(package private)  int computeSumOfDepths(int currentDepth)
           
(package private)  int countNumberOfInternals()
           
(package private)  int countNumberOfLeaves()
           
(package private)  BHNode deleteAndUpdateMarkedNodes()
           
(package private)  void deleteFromParent()
           
(package private) abstract  void destroyTree(BHNode[] bhArr, int[] index)
           
(package private)  BHNode findNode(BHNode node)
           
(package private)  BoundingBox getBoundingHull()
           
(package private)  BHNode getParent()
           
(package private)  boolean isInside(BoundingBox bHull)
           
(package private)  void setBoundingHull(BoundingBox bHull)
           
(package private)  void setParent(BHNode node)
           
(package private) abstract  void updateMarkedBoundingHull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BH_TYPE_INTERNAL

static final byte BH_TYPE_INTERNAL
See Also:
Constant Field Values

BH_TYPE_LEAF

static final byte BH_TYPE_LEAF
See Also:
Constant Field Values

NUMBER_OF_PLANES

static final int NUMBER_OF_PLANES
See Also:
Constant Field Values

debug

static final boolean debug
See Also:
Constant Field Values

debug2

static final boolean debug2
See Also:
Constant Field Values

parent

BHNode parent

nodeType

byte nodeType

bHull

BoundingBox bHull

mark

boolean mark
Constructor Detail

BHNode

BHNode()

BHNode

BHNode(BHNode parent)

BHNode

BHNode(BHNode parent,
       BoundingBox bHull)
Method Detail

getParent

BHNode getParent()

computeBoundingHull

abstract void computeBoundingHull()

updateMarkedBoundingHull

abstract void updateMarkedBoundingHull()

destroyTree

abstract void destroyTree(BHNode[] bhArr,
                          int[] index)

setParent

void setParent(BHNode node)

getBoundingHull

BoundingBox getBoundingHull()

setBoundingHull

void setBoundingHull(BoundingBox bHull)

combineBHull

void combineBHull(BHNode node1,
                  BHNode node2)

isInside

boolean isInside(BoundingBox bHull)

findNode

BHNode findNode(BHNode node)

deleteFromParent

void deleteFromParent()

deleteAndUpdateMarkedNodes

BHNode deleteAndUpdateMarkedNodes()

countNumberOfInternals

int countNumberOfInternals()

countNumberOfLeaves

int countNumberOfLeaves()

computeMaxDepth

int computeMaxDepth(int currentDepth)

computeAverageLeafDepth

float computeAverageLeafDepth(int numberOfLeaves,
                              int currentDepth)

computeSumOfDepths

int computeSumOfDepths(int currentDepth)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.