class compolyx.Scene(graph, model=None, name=”, id=None, title=”, view=None, parent=None, active_set=None)
Class to represent scene.Attributes
Methods
| Name | Description |
|---|---|
Scene.connect() | |
Scene.disconnect() | |
Scene.find_parent(type) | Function steps up the tree and returns the first parent with given type |
Scene.get_display_data_for(obj) | |
Scene.save_snapshot(path[, width, height, …]) | Create a snapshot of the scene |
Scene.serialize() | Serialize to Python string |
Scene.update() | |
Scene.update_direction_display_data(entities) | Function syncronizes the following direction plots with the added/removed entities given: “orientations,” “ref_directions,” “fiber_directions,” “draped_fiber_directions” |
Scene.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node |