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

type b2EdgeChainDef

source code


This structure is used to build edge shapes.

Instance Methods [hide private]
b2EdgeChainDef
__init__(self)
This structure is used to build edge shapes.
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
 
__repr__(self) source code
 
__del__(self)
Cleans up by freeing the allocated vertex array
source code
 
getVertices_tuple(self)
Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ...
source code
 
getVertices_b2Vec2(self)
Returns all of the vertices as a list of b2Vec2's [ (x1,y1), (x2,y2) ...
source code
 
setVertices(self, vertices)
Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ...
source code
 
setVertices_tuple(self, vertices)
Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ...
source code
 
setVertices_b2Vec2(self, vertices)
Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ...
source code
 
__swig_destroy__(...)
delete_b2EdgeChainDef(b2EdgeChainDef self)
 
_cleanUp(...)
b2EdgeChainDef__cleanUp(b2EdgeChainDef self)
source code
 
_allocateVertices(...)
b2EdgeChainDef__allocateVertices(b2EdgeChainDef self, uint16 _count)
source code
 
getVertex(...)
b2EdgeChainDef_getVertex(b2EdgeChainDef self, uint16 vnum) -> b2Vec2
source code
 
setVertex(...)
setVertex(uint16 vnum, b2Vec2 value) b2EdgeChainDef_setVertex(b2EdgeChainDef self, uint16 vnum, float32 x, float32 y)
source code
    Inherited from b2ShapeDef
 
ClearUserData(...)
b2ShapeDef_ClearUserData(b2ShapeDef self)
source code
 
GetUserData(...)
b2ShapeDef_GetUserData(b2ShapeDef self) -> PyObject
source code
 
SetUserData(...)
b2ShapeDef_SetUserData(b2ShapeDef self, PyObject data)
source code
Properties [hide private]
  thisown
The membership flag
  vertexCount
b2EdgeChainDef_vertexCount_get(b2EdgeChainDef self) -> int32
  isALoop
b2EdgeChainDef_isALoop_get(b2EdgeChainDef self) -> bool
  vertices
Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ...
    Inherited from b2ShapeDef
  density
b2ShapeDef_density_get(b2ShapeDef self) -> float32
  filter
b2ShapeDef_filter_get(b2ShapeDef self) -> b2FilterData
  friction
b2ShapeDef_friction_get(b2ShapeDef self) -> float32
  isSensor
b2ShapeDef_isSensor_get(b2ShapeDef self) -> bool
  restitution
b2ShapeDef_restitution_get(b2ShapeDef self) -> float32
  type
b2ShapeDef_type_get(b2ShapeDef self) -> b2ShapeType
  userData
GetUserData(self) -> PyObject
Method Details [hide private]

__init__(self)
(Constructor)

source code 

This structure is used to build edge shapes.

Returns: b2EdgeChainDef
Overrides: b2ShapeDef.__init__

__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. 

Overrides: _generic_getstate

__setstate__(self, dict)

source code 

Takes each variable=value pair in the dictionary and sets the attributes based on them

Overrides: _generic_setstate

__repr__(self)
(Representation operator)

source code 
Overrides: b2ShapeDef.__repr__

__del__(self)
(Destructor)

source code 

Cleans up by freeing the allocated vertex array

Overrides: b2ShapeDef.__del__

getVertices_tuple(self)

source code 

Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ]

getVertices_b2Vec2(self)

source code 

Returns all of the vertices as a list of b2Vec2's [ (x1,y1), (x2,y2) ... (xN,yN) ]

setVertices(self, vertices)

source code 

Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ... (xN,yN) ) where each vertex is either a list/tuple/b2Vec2

setVertices_tuple(self, vertices)

source code 

Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ... (xN,yN) ) where each vertex is either a list/tuple/b2Vec2

setVertices_b2Vec2(self, vertices)

source code 

Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ... (xN,yN) ) where each vertex is either a list/tuple/b2Vec2

__swig_destroy__(...)

 

delete_b2EdgeChainDef(b2EdgeChainDef self)

Overrides: b2ShapeDef.__swig_destroy__

Property Details [hide private]

thisown

The membership flag

vertexCount

b2EdgeChainDef_vertexCount_get(b2EdgeChainDef self) -> int32

isALoop

b2EdgeChainDef_isALoop_get(b2EdgeChainDef self) -> bool

vertices

Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ]

Get Method:
getVertices_tuple(self) - Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ...
Set Method:
setVertices(self, vertices) - Sets all of the vertices given a tuple in the format ( (x1,y1), (x2,y2) ...