Package com.ardor3d.util.geom
Class Debugger
java.lang.Object
com.ardor3d.util.geom.Debugger
Debugger provides tools for viewing scene data such as boundings and normals.
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
protected static final BoundingBox
static final ColorRGBA
static final ColorRGBA
static final int
static final int
static final int
static final int
static final ColorRGBA
static final ColorRGBA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
drawBoundingBox
(BoundingBox box, Renderer r) static void
drawBoundingSphere
(BoundingSphere sphere, Renderer r) static void
drawBounds
(BoundingVolume bv, Renderer r) 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
(TextureStoreFormat rttFormat, int location, Renderer r) static void
drawBuffer
(TextureStoreFormat rttFormat, int location, Renderer r, double size) static void
drawCameraFrustum
(Renderer r, Camera camera, double fNear, double fFar, ReadOnlyColorRGBA color, short pattern, boolean drawOriginConnector) static void
drawCameraFrustum
(Renderer r, Camera camera, ReadOnlyColorRGBA color, short pattern, boolean drawOriginConnector) 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, double size, boolean doChildren) drawNormals
draws the normals for a given Spatial and optionally its children.static void
drawOBB
(OrientedBoundingBox box, Renderer r) static void
drawTangents
(Spatial element, Renderer r) static void
drawTangents
(Spatial element, Renderer r, double size, boolean doChildren) static void
setBoundsColor
(ReadOnlyColorRGBA color)
-
Field Details
-
NORMAL_COLOR_BASE
-
NORMAL_COLOR_TIP
-
TANGENT_COLOR_BASE
-
TANGENT_COLOR_TIP
-
measureBox
-
AUTO_NORMAL_RATIO
public static double AUTO_NORMAL_RATIO -
NORTHWEST
public static final int NORTHWEST- See Also:
-
NORTHEAST
public static final int NORTHEAST- See Also:
-
SOUTHEAST
public static final int SOUTHEAST- See Also:
-
SOUTHWEST
public static final int SOUTHWEST- See Also:
-
-
Constructor Details
-
Debugger
public Debugger()
-
-
Method Details
-
drawBounds
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
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
-
drawBounds
-
setBoundsColor
-
drawBoundingSphere
-
drawBoundingBox
-
drawOBB
-
drawNormals
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
-
drawNormals
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.0 which means autocalc based on boundings - if any).doChildren
- if true, normals for any children will also be drawn
-
drawTangents
-
drawAxis
-
drawAxis
-
drawBuffer
-
drawBuffer
-
drawCameraFrustum
public static void drawCameraFrustum(Renderer r, Camera camera, ReadOnlyColorRGBA color, short pattern, boolean drawOriginConnector) -
drawCameraFrustum
public static void drawCameraFrustum(Renderer r, Camera camera, double fNear, double fFar, ReadOnlyColorRGBA color, short pattern, boolean drawOriginConnector)
-