com.sun.j3d.utils.geometry
Class Stripifier.Node

java.lang.Object
  extended by com.sun.j3d.utils.geometry.Stripifier.Node
Enclosing class:
Stripifier

 class Stripifier.Node
extends java.lang.Object

stores the information for a face node


Field Summary
(package private)  int attrib
           
(package private) static int BLACK
           
(package private)  int depth
           
(package private)  Stripifier.Face face
           
(package private) static int GREY
           
(package private)  Stripifier.Node left
           
(package private)  int numChildren
           
(package private)  Stripifier.Node parent
           
(package private)  Stripifier.Node right
           
(package private) static int WHITE
           
 
Constructor Summary
Stripifier.Node(Stripifier.Face f)
           
 
Method Summary
(package private)  void insert(Stripifier.Node p)
          inserts this node below the parent supplied.
(package private)  boolean isRoot()
          a node is the root if it doesn't have a parent
(package private)  boolean notAccessed()
          returns true if the attrib is WHITE
(package private)  void print()
          prints the information in this Node
(package private)  void processed()
          sets the color to BLACK
(package private)  void remove()
          remove this node from its parent
(package private)  void setRoot()
          sets the depth to 0 and the attrib to GREY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

face

Stripifier.Face face

parent

Stripifier.Node parent

left

Stripifier.Node left

right

Stripifier.Node right

depth

int depth

numChildren

int numChildren

attrib

int attrib

WHITE

static final int WHITE
See Also:
Constant Field Values

GREY

static final int GREY
See Also:
Constant Field Values

BLACK

static final int BLACK
See Also:
Constant Field Values
Constructor Detail

Stripifier.Node

Stripifier.Node(Stripifier.Face f)
Method Detail

insert

void insert(Stripifier.Node p)
inserts this node below the parent supplied.


remove

void remove()
remove this node from its parent


setRoot

void setRoot()
sets the depth to 0 and the attrib to GREY


notAccessed

boolean notAccessed()
returns true if the attrib is WHITE


processed

void processed()
sets the color to BLACK


isRoot

boolean isRoot()
a node is the root if it doesn't have a parent


print

void print()
prints the information in this Node



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