eradiate.scenes.core.SceneTraversal#

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

Bases: object

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

put_instance(obj)[source]#

Add an instance to the kernel dictionary template.

put_object(name, node)[source]#

Add a child object to the template and parameter map.

put_params(params)[source]#

Add a contribution to the parameter map.

put_template(template)[source]#

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