Package pybox2d :: Module Box2D :: Class b2DebugDraw
[hide private]
[frames] | no frames]

type b2DebugDraw

source code


Implement and register this class with a b2Worldto provide debug drawing of physics entities in your game.

Instance Methods [hide private]
b2DebugDraw
__init__(self)
Implement and register this class with a b2Worldto provide debug drawing of physics entities in your game.
source code
 
__swig_destroy__(...)
delete_b2DebugDraw(b2DebugDraw self)
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
 
__disown__(self) source code
 
SetFlags(...)
b2DebugDraw_SetFlags(b2DebugDraw self, uint32 flags)
source code
 
GetFlags(...)
b2DebugDraw_GetFlags(b2DebugDraw self) -> uint32
source code
 
AppendFlags(...)
b2DebugDraw_AppendFlags(b2DebugDraw self, uint32 flags)
source code
 
ClearFlags(...)
b2DebugDraw_ClearFlags(b2DebugDraw self, uint32 flags)
source code
 
DrawPolygon(...)
b2DebugDraw_DrawPolygon(b2DebugDraw self, b2Vec2 vertices, int32 vertexCount, b2Color color)
source code
 
DrawSolidPolygon(...)
b2DebugDraw_DrawSolidPolygon(b2DebugDraw self, b2Vec2 vertices, int32 vertexCount, b2Color color)
source code
 
DrawCircle(...)
b2DebugDraw_DrawCircle(b2DebugDraw self, b2Vec2 center, float32 radius, b2Color color)
source code
 
DrawSolidCircle(...)
b2DebugDraw_DrawSolidCircle(b2DebugDraw self, b2Vec2 center, float32 radius, b2Vec2 axis, b2Color color)
source code
 
DrawSegment(...)
b2DebugDraw_DrawSegment(b2DebugDraw self, b2Vec2 p1, b2Vec2 p2, b2Color color)
source code
 
DrawXForm(...)
b2DebugDraw_DrawXForm(b2DebugDraw self, b2XForm xf)
source code
Class Variables [hide private]
  e_shapeBit = 1
  e_jointBit = 2
  e_coreShapeBit = 4
  e_aabbBit = 8
  e_obbBit = 16
  e_pairBit = 32
  e_centerOfMassBit = 64
  e_controllerBit = 128
Properties [hide private]
  thisown
The membership flag
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Implement and register this class with a b2Worldto provide debug drawing of physics entities in your game.

Returns: b2DebugDraw
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__getstate__(self, additional_ignore=[])

source code 

Returns a dictionary representation of self, with 
 dict(var=value [, ...])

additional_ignore can be specified to ignore certain
properties. 

SetFlags(...)

source code 

b2DebugDraw_SetFlags(b2DebugDraw self, uint32 flags)

Set the drawing flags.

GetFlags(...)

source code 

b2DebugDraw_GetFlags(b2DebugDraw self) -> uint32

Get the drawing flags.

AppendFlags(...)

source code 

b2DebugDraw_AppendFlags(b2DebugDraw self, uint32 flags)

Append flags to the current flags.

ClearFlags(...)

source code 

b2DebugDraw_ClearFlags(b2DebugDraw self, uint32 flags)

Clear flags from the current flags.

DrawPolygon(...)

source code 

b2DebugDraw_DrawPolygon(b2DebugDraw self, b2Vec2 vertices, int32 vertexCount, 
    b2Color color)

Draw a closed polygon provided in CCW order.

DrawSolidPolygon(...)

source code 

b2DebugDraw_DrawSolidPolygon(b2DebugDraw self, b2Vec2 vertices, int32 vertexCount, 
    b2Color color)

Draw a solid closed polygon provided in CCW order.

DrawCircle(...)

source code 

b2DebugDraw_DrawCircle(b2DebugDraw self, b2Vec2 center, float32 radius, b2Color color)

Draw a circle.

DrawSolidCircle(...)

source code 

b2DebugDraw_DrawSolidCircle(b2DebugDraw self, b2Vec2 center, float32 radius, b2Vec2 axis, 
    b2Color color)

Draw a solid circle.

DrawSegment(...)

source code 

b2DebugDraw_DrawSegment(b2DebugDraw self, b2Vec2 p1, b2Vec2 p2, b2Color color)

Draw a line segment.

DrawXForm(...)

source code 

b2DebugDraw_DrawXForm(b2DebugDraw self, b2XForm xf)

Draw a transform. Choose your own length scale.

Parameters:
-----------

xf: a transform.


Property Details [hide private]

thisown

The membership flag