Package xode :: Module parser :: Class Root
[show private | hide private]
[frames | no frames]

Class Root

TreeNode --+
           |
          Root


The root of the object structure. It corresponds to the <xode> tag.
Method Summary
  takeParser(self, parser)
Handles further parsing.
    Inherited from TreeNode
  __init__(self, name, parent)
Initialises this node.
  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

takeParser(self, parser)

Handles further parsing. It should be called immediately after the <xode> tag is encountered.
Parameters:
parser - The parser.
           (type=instance of Parser)
Overrides:
xode.node.TreeNode.takeParser

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