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 |
view
protected View view
camera
protected Camera camera
transform
protected Transform transform
gl
protected javax.media.opengl.GL gl
glu
protected javax.media.opengl.glu.GLU glu
AbstractOrderingStrategy
public AbstractOrderingStrategy()
score
public abstract double score(AbstractDrawable drawable)
- Returns a score for ranking this drawable among other drawables of the scenegraph.
score
public abstract double score(Coord3d coord)
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.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)
getView
public View getView()
setView
public void setView(View view)
Copyright © 2013. All rights reserved.