org.xith3d.render.preprocessing.sorting
Class BackToFrontRenderBinSorter

java.lang.Object
  extended by org.xith3d.render.preprocessing.sorting.RenderBinSorter
      extended by org.xith3d.render.preprocessing.sorting.BackToFrontRenderBinSorter
All Implemented Interfaces:
java.util.Comparator<RenderAtom<?>>
Direct Known Subclasses:
BackToFrontByBoundingSphereAndEyeRayIntersectionRenderBinSorter

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

This sorter sorts RenderAtoms back-to-front.


Constructor Summary
BackToFrontRenderBinSorter()
           
 
Method Summary
 int compare(RenderAtom<?> atom1, RenderAtom<?> atom2)
          
 boolean equals(java.lang.Object o)
           
 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

BackToFrontRenderBinSorter

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

sortRenderBin

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

Specified by:
sortRenderBin in class RenderBinSorter