Module ode :: Class GeomTransform
[show private | hide private]
[frames | no frames]

Type GeomTransform

object --+    
         |    
GeomObject --+
             |
            GeomTransform


GeomTransform.

A geometry transform "T" is a geom that encapsulates another geom "E", allowing E to be positioned and rotated arbitrarily with respect to its point of reference.

Constructor:
 GeomTransform(space=None)

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
GeomObject getGeom()
Get the geom that the geometry transform encapsulates.
int getInfo()
Get the "information" mode of the geometry transform (0 or 1).
  placeable(...)
  setGeom(geom)
Set the geom that the geometry transform encapsulates.
  setInfo(mode)
Set the "information" mode of the geometry transform.
    Inherited from GeomObject
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  disable()
Disable the geom.
  enable()
Enable the geom.
6-tuple getAABB()
Return an axis aligned bounding box that surrounds the geom.
Body getBody()
Get the body associated with this geom.
long getCategoryBits()
Return the "category" bitfields for this geom.
long getCollideBits()
Return the "collide" bitfields for this geom.
3-tuple getPosition()
Get the current position of the geom.
(w,x,y,z) getQuaternion()
Get the current orientation of the geom.
9-tuple getRotation()
Get the current orientation of the geom.
Space getSpace()
Return the space that the given geometry is contained in, or return None if it is not contained in any space.
bool isEnabled()
Return True if the geom is enabled.
bool isSpace()
Return 1 if the given geom is a space, or 0 if not.
  setBody(body)
Set the body associated with a placeable geom.
  setCategoryBits(bits)
Set the "category" bitfields for this geom.
  setCollideBits(bits)
Set the "collide" bitfields for this geom.
  setPosition(pos)
Set the position of the geom.
  setQuaternion(q)
Set the orientation of the geom.
  setRotation(R)
Set the orientation of the geom.
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
ode.GeomObject.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
ode.GeomObject.__new__

getGeom()

Get the geom that the geometry transform encapsulates.
Returns:
GeomObject

getInfo()

Get the "information" mode of the geometry transform (0 or 1).

With mode 0, when a transform object is collided with another object, the geom field of the ContactGeom structure is set to the geom that is encapsulated by the transform object.

With mode 1, the geom field of the ContactGeom structure is set to the transform object itself.
Returns:
int

setGeom(geom)

Set the geom that the geometry transform encapsulates. A ValueError exception is thrown if a) the geom is not placeable, b) the geom was already inserted into a space or c) the geom is already associated with a body.
Parameters:
geom - Geom object to encapsulate
           (type=GeomObject)

setInfo(mode)

Set the "information" mode of the geometry transform.

With mode 0, when a transform object is collided with another object, the geom field of the ContactGeom structure is set to the geom that is encapsulated by the transform object.

With mode 1, the geom field of the ContactGeom structure is set to the transform object itself.
Parameters:
mode - Information mode (0 or 1)
           (type=int)

Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 http://epydoc.sf.net