org.xith3d.render.preprocessing
Class OrderedState

java.lang.Object
  extended by org.xith3d.render.preprocessing.OrderedState

public class OrderedState
extends java.lang.Object

The ordered state is used to denote that a particular atom must be sorted according to an order state first, before material sorting. The ordered state has the ordered group id, as well as the child index of the child of the ordered group. These two numbers are used to sort inside the ordered group.


Field Summary
 int depth
           
static int MAX_NESTED_ORDER_GROUPS
          Total number of allowable nested groups
 long[] orderIds
           
 
Constructor Summary
OrderedState()
           
 
Method Summary
 void addDepth(long number)
          adds a new depth element to the array
 java.lang.Object clone()
          Clones the ordered state.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_NESTED_ORDER_GROUPS

public static final int MAX_NESTED_ORDER_GROUPS
Total number of allowable nested groups

See Also:
Constant Field Values

orderIds

public long[] orderIds

depth

public int depth
Constructor Detail

OrderedState

public OrderedState()
Method Detail

addDepth

public void addDepth(long number)
adds a new depth element to the array

Parameters:
number -

clone

public java.lang.Object clone()
Clones the ordered state. This is usually done when passing a new ordered state down to a child of an ordered group.

Overrides:
clone in class java.lang.Object
Returns:
the clone

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object