eradiate.scenes.core.SceneTraversal#

class eradiate.scenes.core.SceneTraversal(node, parent=None, name=None, depth=0, hierarchy=NOTHING, template=NOTHING, params=NOTHING)#

Bases: object

Data structure used to collect kernel dictionary data during scene element traversal.

put_instance(obj)#

Add an instance to the kernel dictionary template.

put_object(name, node)#

Add a child object to the template and parameter map.

put_params(params)#

Add a contribution to the parameter map.

put_template(template)#

Add a contribution to the kernel dictionary template.

depth#

Current depth

hierarchy#

Dictionary mapping nodes to their parents

name#

Current node’s name

node#

Current traversal node

params#

Dictionary mapping nodes to their defined parameters

parent#

Parent to current node

template#

Kernel dictionary template