public class LayerComparator
extends java.lang.Object
implements com.jme3.renderer.queue.GeometryComparator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EFFECTIVE_LAYER |
static java.lang.String |
LAYER |
Constructor and Description |
---|
LayerComparator(com.jme3.renderer.queue.GeometryComparator delegate) |
LayerComparator(com.jme3.renderer.queue.GeometryComparator delegate,
int bias) |
Modifier and Type | Method and Description |
---|---|
protected float |
calculateEffectiveLayer(com.jme3.scene.Geometry g) |
static void |
clearEffectiveLayer(com.jme3.scene.Spatial s) |
int |
compare(com.jme3.scene.Geometry g1,
com.jme3.scene.Geometry g2) |
float |
getLayer(com.jme3.scene.Geometry g) |
static java.lang.Integer |
getLayer(com.jme3.scene.Spatial s) |
static void |
resetLayer(com.jme3.scene.Spatial s,
int layer) |
void |
setCamera(com.jme3.renderer.Camera cam) |
static void |
setLayer(com.jme3.scene.Spatial s,
int layer) |
java.lang.String |
toString() |
public static final java.lang.String LAYER
public static final java.lang.String EFFECTIVE_LAYER
public LayerComparator(com.jme3.renderer.queue.GeometryComparator delegate)
public LayerComparator(com.jme3.renderer.queue.GeometryComparator delegate, int bias)
public static void setLayer(com.jme3.scene.Spatial s, int layer)
public static void resetLayer(com.jme3.scene.Spatial s, int layer)
public static java.lang.Integer getLayer(com.jme3.scene.Spatial s)
public static void clearEffectiveLayer(com.jme3.scene.Spatial s)
public void setCamera(com.jme3.renderer.Camera cam)
setCamera
in interface com.jme3.renderer.queue.GeometryComparator
protected float calculateEffectiveLayer(com.jme3.scene.Geometry g)
public float getLayer(com.jme3.scene.Geometry g)
public int compare(com.jme3.scene.Geometry g1, com.jme3.scene.Geometry g2)
compare
in interface java.util.Comparator<com.jme3.scene.Geometry>
public java.lang.String toString()
toString
in class java.lang.Object