org.xith3d.render.preprocessing.sorting
Class CustomRenderBinSorter

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

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

This sorter sorts RenderAtoms simply by their custom comparable object.

See Also:
Shape3D.getCustomComparable()

Constructor Summary
CustomRenderBinSorter()
           
 
Method Summary
 int compare(RenderAtom<?> atom1, RenderAtom<?> atom2)
          
 boolean equals(java.lang.Object o)
           
 void sortRenderBin(RenderBin renderBin, Transform3D viewTransform)
          Sorts a whole RenderBin.
 void updateDistancesToView(RenderBin renderBin, Transform3D viewTransform)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomRenderBinSorter

public CustomRenderBinSorter()
Method Detail

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

updateDistancesToView

public void updateDistancesToView(RenderBin renderBin,
                                  Transform3D viewTransform)

Overrides:
updateDistancesToView in class RenderBinSorter

sortRenderBin

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

Specified by:
sortRenderBin in class RenderBinSorter