com.jme.util.geom
Class Debugger
java.lang.Object
com.jme.util.geom.Debugger
public final class Debugger
- extends java.lang.Object
Debugger
provides tools for viewing scene data such as
boundings and normals.
- Version:
- $Id: Debugger.java 4131 2009-03-19 20:15:28Z blaine.dev $
- Author:
- Joshua Slack, Emond Papegaaij (normals ideas and previous normal tool)
Method Summary |
static void |
drawAxis(Spatial spat,
Renderer r)
|
static void |
drawAxis(Spatial spat,
Renderer r,
boolean drawChildren,
boolean drawAll)
|
static void |
drawBounds(Spatial se,
Renderer r)
drawBounds draws the bounding volume for a given Spatial
and its children. |
static void |
drawBounds(Spatial se,
Renderer r,
boolean doChildren)
drawBounds draws the bounding volume for a given Spatial
and optionally its children. |
static void |
drawBuffer(Texture.RenderToTextureType rttSource,
int location,
Renderer r)
|
static void |
drawBuffer(Texture.RenderToTextureType rttSource,
int location,
Renderer r,
float size)
|
static void |
drawNormals(Spatial element,
Renderer r)
drawNormals draws lines representing normals for a given
Spatial and its children. |
static void |
drawNormals(Spatial element,
Renderer r,
float size,
boolean doChildren)
drawNormals draws the normals for a given Spatial and
optionally its children. |
static void |
drawTangents(Spatial element,
Renderer r)
|
static void |
drawTangents(Spatial element,
Renderer r,
float size,
boolean doChildren)
|
static void |
setBoundsColor(ColorRGBA color)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NORMAL_COLOR_BASE
public static ColorRGBA NORMAL_COLOR_BASE
NORMAL_COLOR_TIP
public static ColorRGBA NORMAL_COLOR_TIP
TANGENT_COLOR_BASE
public static ColorRGBA TANGENT_COLOR_BASE
measureBox
public static BoundingBox measureBox
AUTO_NORMAL_RATIO
public static float AUTO_NORMAL_RATIO
NORTHWEST
public static final int NORTHWEST
- See Also:
- Constant Field Values
NORTHEAST
public static final int NORTHEAST
- See Also:
- Constant Field Values
SOUTHEAST
public static final int SOUTHEAST
- See Also:
- Constant Field Values
SOUTHWEST
public static final int SOUTHWEST
- See Also:
- Constant Field Values
Debugger
public Debugger()
drawBounds
public static void drawBounds(Spatial se,
Renderer r)
drawBounds
draws the bounding volume for a given Spatial
and its children.
- Parameters:
se
- the Spatial to draw boundings for.r
- the Renderer to use to draw the bounding.
drawBounds
public static void drawBounds(Spatial se,
Renderer r,
boolean doChildren)
drawBounds
draws the bounding volume for a given Spatial
and optionally its children.
- Parameters:
se
- the Spatial to draw boundings for.r
- the Renderer to use to draw the bounding.doChildren
- if true, boundings for any children will also be drawn
setBoundsColor
public static void setBoundsColor(ColorRGBA color)
drawNormals
public static void drawNormals(Spatial element,
Renderer r)
drawNormals
draws lines representing normals for a given
Spatial and its children.
- Parameters:
element
- the Spatial to draw normals for.r
- the Renderer to use to draw the normals.
drawTangents
public static void drawTangents(Spatial element,
Renderer r)
drawNormals
public static void drawNormals(Spatial element,
Renderer r,
float size,
boolean doChildren)
drawNormals
draws the normals for a given Spatial and
optionally its children.
- Parameters:
element
- the Spatial to draw normals for.r
- the Renderer to use to draw the normals.size
- the length of the drawn normal (default is -1.0f which means
autocalc based on boundings - if any).doChildren
- if true, normals for any children will also be drawn
drawTangents
public static void drawTangents(Spatial element,
Renderer r,
float size,
boolean doChildren)
drawAxis
public static void drawAxis(Spatial spat,
Renderer r)
drawAxis
public static void drawAxis(Spatial spat,
Renderer r,
boolean drawChildren,
boolean drawAll)
drawBuffer
public static void drawBuffer(Texture.RenderToTextureType rttSource,
int location,
Renderer r)
drawBuffer
public static void drawBuffer(Texture.RenderToTextureType rttSource,
int location,
Renderer r,
float size)