Package xode :: Module geom :: Class Geom
[show private | hide private]
[frames | no frames]

Class Geom

TreeNode --+
           |
          Geom


Represents an ode.Geom object and corresponds to the <geom> tag.
Method Summary
  __init__(self, name, parent)
Initialises this node.
  takeParser(self, parser)
Handle further parsing.
  _endElement(self, name)
  _parseGeomBox(self, attrs)
  _parseGeomCCylinder(self, attrs)
  _parseGeomPlane(self, attrs)
  _parseGeomRay(self, attrs)
  _parseGeomSphere(self, attrs)
  _parseTriMesh(self, attrs)
  _setObject(self, kclass, **kwargs)
Create the Geom object and apply transforms.
  _startElement(self, name, attrs)
    Inherited from TreeNode
  addChild(self, child, name)
Adds a child node.
list getChildren(self)
Return the list of child nodes.
instance of TreeNode getFirstAncestor(self, type)
Find the first ancestor of this node that represents an ODE object of the specified type.
str or None getName(self)
Return this node's name.
instance of transform.Transform getNodeTransform(self)
Return the transform of this node.
instance getODEObject(self)
Return the ODE object represented by this node.
instance of TreeNode or None getParent(self)
Return the parent of this node.
instance of TreeNode getRoot(self)
Finds the root node of this parse tree.
instance of transform.Transform getTransform(self, untilAncestor)
Calculates the absolute transform at this node.
instance of TreeNode namedChild(self, name)
Retrieves a named child node.
  setNodeTransform(self, transform)
  setODEObject(self, obj)
Sets the ODE object represented by this node.

Method Details

__init__(self, name, parent)
(Constructor)

Initialises this node. If the parent is not None, parent.addChild() is called.
Parameters:
name - The name of this container or None if there is none.
           (type=str)
parent - The parent of this node or None.
           (type=instance or None)
Overrides:
xode.node.TreeNode.__init__ (inherited documentation)

takeParser(self, parser)

Handle further parsing. It should be called immediately after the <geom> tag has been encountered.
Overrides:
xode.node.TreeNode.takeParser

_setObject(self, kclass, **kwargs)

Create the Geom object and apply transforms. Only call for placeable Geoms.

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