Inherits from
- AbstractGradEditor: enthought.tvtk.util.wx_gradient_editor.AbstractGradEditor
Method summary
- __init__(self, master, vtk_table, on_change_color_table = None, colors = None)
- get_table_range(self)
- load(self, file_name)
- on_gradient_menu(self, event)
- on_gradient_table_changed(self, final_update)
- on_load(self, event)
- on_save(self, event)
- save(self, file_name)
- set_status_text(self, msg)
Methods
- __init__(self, master, vtk_table, on_change_color_table = None, colors = None)
Parameters:
- vtk_table : the tvtk.LookupTable or tvtk.VolumeProperty object
- to set.
- on_change_color_table : A callback called when the color table
- changes.
- colors : list of 'rgb', 'hsv', 'h', 's', 'v', 'a'
(Default : ['rgb', 'hsv', 'a'])
'rgb' creates one panel to edit Red, Green and Blue colors.
'hsv' creates one panel to edit Hue, Saturation and Value.
'h', 's', 'v', 'r', 'g', 'b', 'a' separately specified creates different panels for each.
- get_table_range(self)
- load(self, file_name)
Set the state of the color table using the given file.
- on_gradient_table_changed(self, final_update)
Update the gradient table and vtk lookuptable...
- on_load(self, event)
Load a *.grad lookuptable file using wxpython dialog
- on_save(self, event)
Open "Save" dialog, write lookuptable to 3 files: *.lut (lookuptable) *.grad (gradient table for use with this program), and *.jpg (image of the gradient)
- save(self, file_name)
Store the color table to the given file. This actually generates 3 files, a '.grad', a '.lut' file and a '.jpg' file. The .lut file can be used to setup a lookup table. The .grad file is used to set the state of the gradient table and the JPG file is an image of the how the lut will look.
- set_status_text(self, msg)