org.jzy3d.plot3d.rendering.ordering
Class AbstractOrderingStrategy

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

public abstract class AbstractOrderingStrategy
extends java.lang.Object
implements java.util.Comparator<AbstractDrawable>

An ordering strategy is a Comparator for AbstractDrawables that may compute the priority between AbstractDrawables d1 and d2.

Author:
Martin Pernollet

Constructor Summary
AbstractOrderingStrategy()
           
 
Method Summary
 Camera getCamera()
           
 javax.media.opengl.GL getGl()
           
 javax.media.opengl.glu.GLU getGlu()
           
 Transform getTransform()
           
 void setAll(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera camera, Transform transform)
           
 void setCamera(Camera camera)
           
 void setGl(javax.media.opengl.GL gl)
           
 void setGlu(javax.media.opengl.glu.GLU glu)
           
 void setTransform(Transform transform)
           
 void sort(java.util.List<AbstractDrawable> monotypes, Camera cam)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

AbstractOrderingStrategy

public AbstractOrderingStrategy()
Method Detail

sort

public void sort(java.util.List<AbstractDrawable> monotypes,
                 Camera cam)

setAll

public void setAll(javax.media.opengl.GL gl,
                   javax.media.opengl.glu.GLU glu,
                   Camera camera,
                   Transform transform)

getCamera

public Camera getCamera()

setCamera

public void setCamera(Camera camera)

getTransform

public Transform getTransform()

setTransform

public void setTransform(Transform transform)

getGl

public javax.media.opengl.GL getGl()

setGl

public void setGl(javax.media.opengl.GL gl)

getGlu

public javax.media.opengl.glu.GLU getGlu()

setGlu

public void setGlu(javax.media.opengl.glu.GLU glu)