Class Debugger

java.lang.Object
com.ardor3d.util.geom.Debugger

public final class Debugger extends Object
Debugger provides tools for viewing scene data such as boundings and normals.
  • Field Details

    • NORMAL_COLOR_BASE

      public static final ColorRGBA NORMAL_COLOR_BASE
    • NORMAL_COLOR_TIP

      public static final ColorRGBA NORMAL_COLOR_TIP
    • TANGENT_COLOR_BASE

      public static final ColorRGBA TANGENT_COLOR_BASE
    • TANGENT_COLOR_TIP

      public static final ColorRGBA TANGENT_COLOR_TIP
    • measureBox

      protected static final BoundingBox 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

      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
    • drawBounds

      public static void drawBounds(BoundingVolume bv, Renderer r)
    • setBoundsColor

      public static void setBoundsColor(ReadOnlyColorRGBA color)
    • drawBoundingSphere

      public static void drawBoundingSphere(BoundingSphere sphere, Renderer r)
    • drawBoundingBox

      public static void drawBoundingBox(BoundingBox box, Renderer r)
    • drawOBB

      public static void drawOBB(OrientedBoundingBox box, Renderer r)
    • 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, double 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.0 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, double 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(TextureStoreFormat rttFormat, int location, Renderer r)
    • drawBuffer

      public static void drawBuffer(TextureStoreFormat rttFormat, int location, Renderer r, double size)
    • 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)