org.jzy3d.plot3d.rendering.ordering
Class AbstractOrderingStrategy
- java.lang.Object
-
- 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 aComparatorforAbstractDrawables that may compute the priority betweenAbstractDrawables d1 and d2.
-
-
Constructor Summary
Constructors Constructor and Description AbstractOrderingStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description CameragetCamera()com.jogamp.opengl.GLgetGl()com.jogamp.opengl.glu.GLUgetGlu()TransformgetTransform()ViewgetView()abstract doublescore(AbstractDrawable drawable)Returns a score for ranking this drawable among other drawables of the scenegraph.abstract doublescore(Coord3d coord)voidsetAll(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera camera, Transform transform)voidsetCamera(Camera camera)voidsetGl(com.jogamp.opengl.GL gl)voidsetGlu(com.jogamp.opengl.glu.GLU glu)voidsetTransform(Transform transform)voidsetView(View view)voidsort(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, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
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(java.util.List<AbstractDrawable> monotypes, Camera cam)
- Parameters:
monotypes-cam-- Throws:
java.lang.IllegalArgumentException:- "Comparison method violates its general contract!" on some JVM. Fix with System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
-
setAll
public void setAll(com.jogamp.opengl.GL gl, com.jogamp.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 com.jogamp.opengl.GL getGl()
-
setGl
public void setGl(com.jogamp.opengl.GL gl)
-
getGlu
public com.jogamp.opengl.glu.GLU getGlu()
-
setGlu
public void setGlu(com.jogamp.opengl.glu.GLU glu)
-
getView
public View getView()
-
setView
public void setView(View view)
-
-
DMelt 3.0 © DataMelt by jWork.ORG