org.xith3d.render.preprocessing.sorting
Class OrderedStateRenderBinSorter

java.lang.Object
  extended by org.xith3d.render.preprocessing.sorting.RenderBinSorter
      extended by org.xith3d.render.preprocessing.sorting.OrderedStateRenderBinSorter
All Implemented Interfaces:
java.util.Comparator<RenderAtom<?>>

public class OrderedStateRenderBinSorter
extends RenderBinSorter
implements java.util.Comparator<RenderAtom<?>>

This sorter sorts RenderAtoms by StateUnits (state-sorting) with respect to the Node's OrderedState.


Constructor Summary
OrderedStateRenderBinSorter()
           
OrderedStateRenderBinSorter(StatePriorities priorities)
           
 
Method Summary
 int compare(RenderAtom<?> atom1, RenderAtom<?> atom2)
          
 boolean equals(java.lang.Object o)
           
 StatePriorities getPriorities()
           
 void sortRenderBin(RenderBin renderBin, Transform3D viewTransform)
          Sorts a whole RenderBin.
 
Methods inherited from class org.xith3d.render.preprocessing.sorting.RenderBinSorter
updateDistancesToView
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedStateRenderBinSorter

public OrderedStateRenderBinSorter(StatePriorities priorities)

OrderedStateRenderBinSorter

public OrderedStateRenderBinSorter()
Method Detail

getPriorities

public final StatePriorities getPriorities()

compare

public int compare(RenderAtom<?> atom1,
                   RenderAtom<?> atom2)

Specified by:
compare in interface java.util.Comparator<RenderAtom<?>>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Comparator<RenderAtom<?>>
Overrides:
equals in class java.lang.Object

sortRenderBin

public void sortRenderBin(RenderBin renderBin,
                          Transform3D viewTransform)
Sorts a whole RenderBin.

Specified by:
sortRenderBin in class RenderBinSorter