public abstract class AbstractOrderingStrategy extends Object implements Comparator<AbstractDrawable>
Comparator
for AbstractDrawable
s
that may compute the priority between AbstractDrawable
s d1 and d2.Modifier and Type | Field and Description |
---|---|
protected Camera |
camera |
protected com.jogamp.opengl.GL |
gl |
protected com.jogamp.opengl.glu.GLU |
glu |
protected Transform |
transform |
protected View |
view |
Constructor and Description |
---|
AbstractOrderingStrategy() |
Modifier and Type | Method and Description |
---|---|
protected int |
comparison(double dist1,
double dist2)
Return the opposite of closest distance, so that closest distance is sorted after farest distance.
|
Camera |
getCamera() |
com.jogamp.opengl.GL |
getGl() |
com.jogamp.opengl.glu.GLU |
getGlu() |
Transform |
getTransform() |
View |
getView() |
abstract double |
score(AbstractDrawable drawable)
Returns a score for ranking this drawable among other drawables of the scenegraph.
|
abstract double |
score(Coord3d coord) |
void |
setAll(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera camera,
Transform transform) |
void |
setCamera(Camera camera) |
void |
setGl(com.jogamp.opengl.GL gl) |
void |
setGlu(com.jogamp.opengl.glu.GLU glu) |
void |
setTransform(Transform transform) |
void |
setView(View view) |
void |
sort(List<AbstractDrawable> monotypes,
Camera cam) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected View view
protected Camera camera
protected Transform transform
protected com.jogamp.opengl.GL gl
protected com.jogamp.opengl.glu.GLU glu
public abstract double score(AbstractDrawable drawable)
public abstract double score(Coord3d coord)
public void sort(List<AbstractDrawable> monotypes, Camera cam)
protected int comparison(double dist1, double dist2)
public void setAll(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera camera, Transform transform)
public Camera getCamera()
public void setCamera(Camera camera)
public Transform getTransform()
public void setTransform(Transform transform)
public com.jogamp.opengl.GL getGl()
public void setGl(com.jogamp.opengl.GL gl)
public com.jogamp.opengl.glu.GLU getGlu()
public void setGlu(com.jogamp.opengl.glu.GLU glu)
public View getView()
public void setView(View view)
Copyright © 2016. All rights reserved.