API Reference for Enthought Tool Suite 3.2.0
Traits View definition file.
The view trait of the parent class is extracted from the model definition file. This file can either be exec()ed or imported. See core/base.py:Base.trait_view() for what is currently used. Using exec() allows view changes without needing to restart Mayavi, but is slower than importing.
lut_image_dir = os.path.dirname(lut.__file__)
The view of the LUT Manager object.
view = View(Group(Item(name = 'lut_mode', editor = ImageEnumEditor(values = lut_mode_list(), cols = 6, path = lut_image_dir)), Item(name = 'file_name', visible_when = "lut_mode=='file'"), Item(name = 'number_of_colors'), Item(name = 'reverse_lut'), Item(name = 'lut', show_label = False, editor = InstanceEditor(label = 'Edit LUT properties')), Item(name = 'create_lut', show_label = False), Group(Item(name = 'show_scalar_bar'), Group(Item(name = 'number_of_labels'), enabled_when = 'show_scalar_bar==True'), Group(Item(name = 'shadow'), Item(name = 'use_default_name'), Item(name = 'data_name', enabled_when = 'not object.use_default_name'), HGroup(Item(name = '_title_text_property', show_label = False, editor = InstanceEditor(label = 'Edit bar Title')), Item(name = '_label_text_property', show_label = False, editor = InstanceEditor(label = 'Edit bar Text'), label = 'Edit bar Text')), HGroup(Item(name = 'scalar_bar', show_label = False, editor = InstanceEditor(label = 'Edit bar Actor')), Item(name = 'scalar_bar_widget', show_label = False, editor = InstanceEditor(label = 'Edit bar Widget'))), enabled_when = 'show_scalar_bar==True'), show_border = True), Group(Item(name = 'use_default_range'), Item(name = 'data_range', enabled_when = 'not object.use_default_range'), show_border = True), label = 'LUT (Look Up Table) Manager'), resizable = True)
| Local name | Refers to |
|---|---|
| Group | enthought.traits.ui.group.Group |
| HGroup | enthought.traits.ui.group.HGroup |
| ImageEnumEditor | enthought.traits.ui.editors.image_enum_editor.ImageEnumEditor |
| InstanceEditor | enthought.traits.ui.editors.instance_editor.InstanceEditor |
| Item | enthought.traits.ui.item.Item |
| lut_mode_list | enthought.mayavi.core.lut_manager.lut_mode_list |
| os | os |
| View | enthought.traits.ui.view.View |
© Copyright 2002-2009 Enthought, Inc.