org.jzy3d.plot3d.rendering.ordering
Class BarycentreOrderingStrategy

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
      extended by org.jzy3d.plot3d.rendering.ordering.BarycentreOrderingStrategy
All Implemented Interfaces:
java.util.Comparator<AbstractDrawable>

public class BarycentreOrderingStrategy
extends AbstractOrderingStrategy

The BarycentreOrderingStrategy compare two AbstractDrawables by computing their respective distances to the Camera, which must be referenced prior to any comparison.

Author:
Martin Pernollet

Constructor Summary
BarycentreOrderingStrategy()
           
 
Method Summary
 int compare(AbstractDrawable d1, AbstractDrawable d2)
           
 
Methods inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
getCamera, getGl, getGlu, getTransform, setAll, setCamera, setGl, setGlu, setTransform, sort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BarycentreOrderingStrategy

public BarycentreOrderingStrategy()
Method Detail

compare

public int compare(AbstractDrawable d1,
                   AbstractDrawable d2)