org.xith3d.render.preprocessing.sorting
Class StateRenderBinSorter

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

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

This sorter sorts RenderAtoms by StateUnits (state-sorting).


Constructor Summary
StateRenderBinSorter()
           
StateRenderBinSorter(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

StateRenderBinSorter

public StateRenderBinSorter(StatePriorities priorities)

StateRenderBinSorter

public StateRenderBinSorter()
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