Class DebugDrawJ2D
java.lang.Object
org.jbox2d.callbacks.DebugDraw
org.jbox2d.testbed.framework.j2d.DebugDrawJ2D
-
Field Summary
FieldsFields inherited from class DebugDraw
e_aabbBit, e_centerOfMassBit, e_dynamicTreeBit, e_jointBit, e_pairBit, e_shapeBit, m_drawFlags, viewportTransform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddrawCircle(Vec2 center, float radius, Color3f color) Draw a circle.voidvoiddrawSegment(Vec2 p1, Vec2 p2, Color3f color) Draw a line segment.voiddrawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) Draw a solid circle.voiddrawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color) Draw a solid closed polygon provided in CCW order.voiddrawString(float x, float y, String s, Color3f color) Draw a string.voidDraw a transform.Methods inherited from class DebugDraw
appendFlags, clearFlags, drawPolygon, drawString, getFlags, getScreenToWorld, getScreenToWorld, getScreenToWorldToOut, getScreenToWorldToOut, getViewportTranform, getWorldToScreen, getWorldToScreen, getWorldToScreenToOut, getWorldToScreenToOut, setCamera, setFlags
-
Field Details
-
circlePoints
public static int circlePoints
-
-
Constructor Details
-
DebugDrawJ2D
- Parameters:
viewport-
-
-
Method Details
-
drawCircle
Description copied from class:DebugDrawDraw a circle.- Specified by:
drawCirclein classDebugDraw- Parameters:
center-radius-color-
-
drawPoint
-
drawSegment
-
drawAABB
-
drawSolidCircle
-
drawSolidPolygon
Description copied from class:DebugDrawDraw a solid closed polygon provided in CCW order.- Specified by:
drawSolidPolygonin classDebugDraw- Parameters:
vertices-vertexCount-color-
-
drawString
Description copied from class:DebugDrawDraw a string.- Specified by:
drawStringin classDebugDraw- Parameters:
x-y-s-color-
-
drawTransform
Description copied from class:DebugDrawDraw a transform. Choose your own length scale- Specified by:
drawTransformin classDebugDraw- Parameters:
xf-
-