org.jzy3d.plot3d.rendering.ordering
Class DefaultOrderingStrategy

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

public class DefaultOrderingStrategy
extends AbstractOrderingStrategy

The default ordering strategy let drawables be displayed in their original order and as thus no computation cost.


Field Summary
 
Fields inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
camera, gl, glu, transform, view
 
Constructor Summary
DefaultOrderingStrategy()
           
 
Method Summary
 int compare(AbstractDrawable o1, AbstractDrawable o2)
           
 double score(AbstractDrawable drawable)
          Returns a score for ranking this drawable among other drawables of the scenegraph.
 double score(Coord3d coord)
           
 
Methods inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
comparison, getCamera, getGl, getGlu, getTransform, getView, setAll, setCamera, setGl, setGlu, setTransform, setView, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultOrderingStrategy

public DefaultOrderingStrategy()
Method Detail

compare

public int compare(AbstractDrawable o1,
                   AbstractDrawable o2)

score

public double score(AbstractDrawable drawable)
Description copied from class: AbstractOrderingStrategy
Returns a score for ranking this drawable among other drawables of the scenegraph.

Specified by:
score in class AbstractOrderingStrategy

score

public double score(Coord3d coord)
Specified by:
score in class AbstractOrderingStrategy


Copyright © 2013. All rights reserved.