org.xith3d.render.preprocessing.sorting
Class FrontToBackRenderBinSorter2

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

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

This sorter sorts RenderAtoms front-to-back.


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

FrontToBackRenderBinSorter2

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