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

type b2ShapeDef

source code

Known Subclasses:

A shape definition is used to construct a shape. This class defines an abstract shape definition. You can reuse shape definitions safely.

Instance Methods [hide private]
b2ShapeDef
__init__(self)
The constructor sets the default shape definition values.
source code
 
__swig_destroy__(...)
delete_b2ShapeDef(b2ShapeDef 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
 
__del__(self) source code
 
GetUserData(...)
b2ShapeDef_GetUserData(b2ShapeDef self) -> PyObject
source code
 
SetUserData(...)
b2ShapeDef_SetUserData(b2ShapeDef self, PyObject data)
source code
 
ClearUserData(...)
b2ShapeDef_ClearUserData(b2ShapeDef self)
source code
Properties [hide private]
  thisown
The membership flag
  type
b2ShapeDef_type_get(b2ShapeDef self) -> b2ShapeType
  friction
b2ShapeDef_friction_get(b2ShapeDef self) -> float32
  restitution
b2ShapeDef_restitution_get(b2ShapeDef self) -> float32
  density
b2ShapeDef_density_get(b2ShapeDef self) -> float32
  isSensor
b2ShapeDef_isSensor_get(b2ShapeDef self) -> bool
  filter
b2ShapeDef_filter_get(b2ShapeDef self) -> b2FilterData
  userData
GetUserData(self) -> PyObject
Method Details [hide private]

__init__(self)
(Constructor)

source code 

The constructor sets the default shape definition values.

Returns: b2ShapeDef
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. 


Property Details [hide private]

thisown

The membership flag

type

b2ShapeDef_type_get(b2ShapeDef self) -> b2ShapeType

friction

b2ShapeDef_friction_get(b2ShapeDef self) -> float32

restitution

b2ShapeDef_restitution_get(b2ShapeDef self) -> float32

density

b2ShapeDef_density_get(b2ShapeDef self) -> float32

isSensor

b2ShapeDef_isSensor_get(b2ShapeDef self) -> bool

filter

b2ShapeDef_filter_get(b2ShapeDef self) -> b2FilterData

userData

GetUserData(self) -> PyObject