org.jzy3d.plot3d.rendering.ordering
Class AbstractOrderingStrategy
java.lang.Object
org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
- All Implemented Interfaces:
- Comparator<AbstractDrawable>
- Direct Known Subclasses:
- BarycentreOrderingStrategy, DefaultOrderingStrategy
public abstract class AbstractOrderingStrategy
- extends Object
- implements Comparator<AbstractDrawable>
An ordering strategy is a Comparator
for AbstractDrawable
s
that may compute the priority between AbstractDrawable
s d1 and d2.
- Author:
- Martin Pernollet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
camera
protected Camera camera
transform
protected Transform transform
gl
protected javax.media.opengl.GL2 gl
glu
protected javax.media.opengl.glu.GLU glu
AbstractOrderingStrategy
public AbstractOrderingStrategy()
sort
public void sort(List<AbstractDrawable> monotypes,
Camera cam)
comparison
protected int comparison(double dist1,
double dist2)
- Return the opposite of closest distance, so that closest distance is sorted after farest distance.
setAll
public void setAll(javax.media.opengl.GL2 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.GL2 getGl()
setGl
public void setGl(javax.media.opengl.GL2 gl)
getGlu
public javax.media.opengl.glu.GLU getGlu()
setGlu
public void setGlu(javax.media.opengl.glu.GLU glu)