Trees | Index | Help |
|
---|
Package xode :: Module node :: Class TreeNode |
|
Body
,
Geom
,
Joint
,
Mass
,
Root
,
Space
,
World
Method Summary | |
---|---|
Initialises this node. | |
Adds a child node. | |
list |
Return the list of child nodes. |
instance of TreeNode
|
Find the first ancestor of this node that represents an ODE object of the specified type. |
str or None
|
Return this node's name. |
instance of transform.Transform
|
Return the transform of this node. |
instance |
Return the ODE object represented by this node. |
instance of TreeNode or None
|
Return the parent of this node. |
instance of TreeNode
|
Finds the root node of this parse tree. |
instance of transform.Transform
|
Calculates the absolute transform at this node. |
instance of TreeNode
|
Retrieves a named child node. |
| |
Sets the ODE object represented by this node. | |
Called to make this node handle further parsing. |
Method Details |
---|
__init__(self,
name,
parent)
Initialises this node. If the parent is not |
addChild(self, child, name)Adds a child node.
|
getChildren(self)
|
getFirstAncestor(self, type)Find the first ancestor of this node that represents an ODE object of the specified type.
|
getName(self)
|
getNodeTransform(self)
|
getODEObject(self)
|
getParent(self)
|
getRoot(self)Finds the root node of this parse tree.
|
getTransform(self, untilAncestor=None)Calculates the absolute transform at this node. It calculates the transforms recursively from the root node. IfuntilAncestor is passed, the transform is calculated
relative to it. If untilAncestor is passed but is not an
ancestor of this node, the transform is calculated from the root node
as if None was passed.
|
namedChild(self, name)Retrieves a named child node. If no child by that name is a direct child of this node, all the child nodes are searched recursively until either the named child is found or every node has been searched.
|
setNodeTransform(self, transform)
|
setODEObject(self, obj)Sets the ODE object represented by this node.
|
takeParser(self, parser)Called to make this node handle further parsing. It will release the parser when it has finished.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 | http://epydoc.sf.net |