API Reference for Enthought Tool Suite 3.2.0
A tvtk pipeline browser.
An abstract TreeGenerator class defines the interface of a tree generator. This class is responsible for generating the list of children. Often tvtk object's children are collections of various objects, some sequences and some simple objects. In order to provide a unified interface to all children, all of these objects are wrapped using the CompositeIterable which presents all children as a single iterable.
SimpleTreeGenerator does not do extensive analysis of the passed object in order to compute the children. FullTreeGenerator however uses the algorithm that MayaVi-1.x uses and therefore generates a large number of objects.
The PipelineBrowser class presents the view of the pipeline as a tree. It allows one to specify the TreeGenerator instance. The TreeEditor from the traits package is used to represent the view. A TVTKLeafNode defines a node that has no children. A TVTKBranchNode is a node that has children. The nodes basically wrap up the tvtk object and present an interface suitable for the TreeEditor.
TODO:
- When a node is selected, the actor involved could be highlighted.
Given the name of the object, this function returns an appropriate icon image name. If no icon is appropriate it returns the empty string.
Simple test case.
| Local name | Refers to |
|---|---|
| Action | enthought.traits.ui.menu.Action |
| Any | enthought.traits.trait_types.Any |
| camel2enthought | enthought.tvtk.common.camel2enthought |
| Dict | enthought.traits.trait_types.Dict |
| Float | enthought.traits.trait_types.Float |
| Group | enthought.traits.ui.group.Group |
| HasTraits | enthought.traits.has_traits.HasTraits |
| Instance | enthought.traits.trait_types.Instance |
| Item | enthought.traits.ui.item.Item |
| List | enthought.traits.trait_types.List |
| Menu | enthought.pyface.action.menu_manager.MenuManager |
| ObjectTreeNode | enthought.traits.ui.tree_node.ObjectTreeNode |
| Property | enthought.traits.traits.Property |
| Python | enthought.traits.trait_types.Python |
| re | re |
| Str | enthought.traits.trait_types.Str |
| Trait | enthought.traits.traits.Trait |
| TreeEditor | enthought.traits.ui.editors.tree_editor.TreeEditor |
| TreeNodeObject | enthought.traits.ui.tree_node.TreeNodeObject |
| tvtk | enthought.tvtk.tvtk.tvtk |
| TVTKBase | enthought.tvtk.tvtk_base.TVTKBase |
| TVTKBaseHandler | enthought.tvtk.tvtk_base_handler.TVTKBaseHandler |
| View | enthought.traits.ui.view.View |
© Copyright 2002-2009 Enthought, Inc.