org.jbox2d.testbed.framework.j2d
Class DebugDrawJ2D
java.lang.Object
org.jbox2d.callbacks.DebugDraw
org.jbox2d.testbed.framework.j2d.DebugDrawJ2D
public class DebugDrawJ2D
- extends org.jbox2d.callbacks.DebugDraw
Implementation of DebugDraw
that uses Java2D! Hooray!
- Author:
- Daniel Murphy
Fields inherited from class org.jbox2d.callbacks.DebugDraw |
e_aabbBit, e_centerOfMassBit, e_dynamicTreeBit, e_jointBit, e_pairBit, e_shapeBit, m_drawFlags, viewportTransform |
Method Summary |
void |
drawAABB(org.jbox2d.collision.AABB argAABB,
org.jbox2d.common.Color3f color)
|
void |
drawCircle(org.jbox2d.common.Vec2 center,
float radius,
org.jbox2d.common.Color3f color)
|
void |
drawPoint(org.jbox2d.common.Vec2 argPoint,
float argRadiusOnScreen,
org.jbox2d.common.Color3f argColor)
|
void |
drawSegment(org.jbox2d.common.Vec2 p1,
org.jbox2d.common.Vec2 p2,
org.jbox2d.common.Color3f color)
|
void |
drawSolidCircle(org.jbox2d.common.Vec2 center,
float radius,
org.jbox2d.common.Vec2 axis,
org.jbox2d.common.Color3f color)
|
void |
drawSolidPolygon(org.jbox2d.common.Vec2[] vertices,
int vertexCount,
org.jbox2d.common.Color3f color)
|
void |
drawString(float x,
float y,
java.lang.String s,
org.jbox2d.common.Color3f color)
|
void |
drawTransform(org.jbox2d.common.Transform xf)
|
Methods inherited from class org.jbox2d.callbacks.DebugDraw |
appendFlags, clearFlags, drawPolygon, drawString, getFlags, getScreenToWorld, getScreenToWorld, getScreenToWorldToOut, getScreenToWorldToOut, getViewportTranform, getWorldToScreen, getWorldToScreen, getWorldToScreenToOut, getWorldToScreenToOut, setCamera, setFlags |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
circlePoints
public static int circlePoints
DebugDrawJ2D
public DebugDrawJ2D(TestPanelJ2D argTestPanel)
- Parameters:
viewport
-
drawCircle
public void drawCircle(org.jbox2d.common.Vec2 center,
float radius,
org.jbox2d.common.Color3f color)
- Specified by:
drawCircle
in class org.jbox2d.callbacks.DebugDraw
drawPoint
public void drawPoint(org.jbox2d.common.Vec2 argPoint,
float argRadiusOnScreen,
org.jbox2d.common.Color3f argColor)
- Specified by:
drawPoint
in class org.jbox2d.callbacks.DebugDraw
drawSegment
public void drawSegment(org.jbox2d.common.Vec2 p1,
org.jbox2d.common.Vec2 p2,
org.jbox2d.common.Color3f color)
- Specified by:
drawSegment
in class org.jbox2d.callbacks.DebugDraw
drawAABB
public void drawAABB(org.jbox2d.collision.AABB argAABB,
org.jbox2d.common.Color3f color)
drawSolidCircle
public void drawSolidCircle(org.jbox2d.common.Vec2 center,
float radius,
org.jbox2d.common.Vec2 axis,
org.jbox2d.common.Color3f color)
- Specified by:
drawSolidCircle
in class org.jbox2d.callbacks.DebugDraw
drawSolidPolygon
public void drawSolidPolygon(org.jbox2d.common.Vec2[] vertices,
int vertexCount,
org.jbox2d.common.Color3f color)
- Specified by:
drawSolidPolygon
in class org.jbox2d.callbacks.DebugDraw
drawString
public void drawString(float x,
float y,
java.lang.String s,
org.jbox2d.common.Color3f color)
- Specified by:
drawString
in class org.jbox2d.callbacks.DebugDraw
drawTransform
public void drawTransform(org.jbox2d.common.Transform xf)
- Specified by:
drawTransform
in class org.jbox2d.callbacks.DebugDraw
Copyright © 2013. All Rights Reserved.