API Reference for Enthought Tool Suite 3.2.0
Color transfer function related code.
Given the saved data produced via save_ctfs, this sets the state of the passed volume_property appropriately.
It returns the new color transfer function and piecewise function.
Given the volume_property with a new_range for the data while using the same transfer functions, this function rescales the CTF's so that everything works OK.
It returns the CTF and OTF.
Given a tvtk.VolumeProperty it saves the state of the RGB and opacity CTF to a dictionary and returns that.
The 'rgb' key stores a list of (x, r, g, b) and the 'alpha' a list of (x, a) values.
Given a tvtk.LookupTable and a tvtk.VolumeProperty it loads the state of the RGB and opacity CTF from the lookup table to the CTF. The CTF range is obtained from the volume property and the number of colors to use is obtained from the LUT.
Given a tvtk.LookupTable and a tvtk.VolumeProperty it saves the state of the RGB and opacity CTF from the volume property to the LUT. The number of colors to use is obtained from the LUT and not the CTF.
| Local name | Refers to |
|---|---|
| List | enthought.traits.trait_types.List |
| tvtk | enthought.tvtk.tvtk.tvtk |
© Copyright 2002-2009 Enthought, Inc.