Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- light_mode
Valid modes currently are 'vtk' and 'raymond'. 'vtk' is the default VTK light setup with only one light on in headlight mode. 'raymond' is Raymond Maple's default configuration with three active lights. Please note that this only specifies a default mode used to initialize the lights to a sane default. The user can always change the light configuration via the GUI such that the mode is neither 'vtk' nor 'raymond'.
light_mode = Trait('raymond', TraitRevPrefixMap({ Const('raymond') : Const(1), Const('vtk') : Const(2) }), desc = 'specifies a default lighting mode')
- lights
The list of added lights.
lights = List(CameraLight, editor = ListEditor(use_notebook = True, page_name = 'Light'), record = True)
- number_of_lights
Specify the number of lights. If new lights are added they are by default turned off. Similarly if the number of lights are reduced the last lights alone are removed.
number_of_lights = Range(3, 8, 4, desc = 'specifies the number of lights')
- view
view = View(Group('light_mode', 'number_of_lights'), Item('lights', style = 'custom', show_label = False), resizable = True, buttons = [ 'OK' ])
Inherited from base classes
Method summary
- __get_pure_state__(self)
- __getstate__(self)
- __init__(self, renwin, **traits)
- __set_pure_state__(self, state)
- __setstate__(self, str_state)
- configure(self)
- on_ui_close(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __get_pure_state__(self)
- __getstate__(self)
- __init__(self, renwin, **traits)
- __set_pure_state__(self, state)
- __setstate__(self, str_state)
- configure(self)
Pops up the GUI control widget.
- on_ui_close(self)
This method removes the glyphs used to show the lights on screen when the GUI dialog is closed. This is typically only called from the CloseHandler.