Package esys :: Package pyvisi :: Module lookuptable :: Class LookupTable
[hide private]
[frames] | no frames]

Class LookupTable

Class that defines a lookup table for mapping scalar values into colors.

Instance Methods [hide private]
 
__build(self)
Generates the lookup table.
 
__init__(self)
Initialise the lookup table.
 
__setHueRange(self, lower_range, upper_range)
Set the hue (color) range for the lookup table (between 0 and 1).
 
__setNumberOfTableValues(self, table_values)
Set the number of values (i.e.
 
__setRampToSQRT(self)
Set the table ramp to SQRT.
 
__setSaturationRange(self, lower_range, upper_range)
Set the saturation (vibrancy) range for the lookup table (between 0 and 1).
 
__setValueRange(self, lower_range, upper_range)
Set the value range (brightness) for the lookup table (between 0 and 1).
vtkLookupTable
_getLookupTable(self)
Return the lookup table.
 
_setLookupTableToGreyScale(self)
Setup the lookup table with grey scale.
 
_setTableValue(self)
Setup the lookup table with colors.
Method Details [hide private]

__setHueRange(self, lower_range, upper_range)

 

Set the hue (color) range for the lookup table (between 0 and 1).

Parameters:
  • lower_range (Number) - Lower hue range
  • upper_range (Number) - Upper hue range

__setNumberOfTableValues(self, table_values)

 

Set the number of values (i.e. colors) in the lookup table.

Parameters:
  • table_values (Number) - Number of colors in the lookup table.

__setRampToSQRT(self)

 

Set the table ramp to SQRT. The default ramp is S-curve.

__setSaturationRange(self, lower_range, upper_range)

 

Set the saturation (vibrancy) range for the lookup table (between 0 and 1).

Parameters:
  • lower_range (Number) - Lower saturantion range
  • upper_range (Number) - Upper saturation range

__setValueRange(self, lower_range, upper_range)

 

Set the value range (brightness) for the lookup table (between 0 and 1).

Parameters:
  • lower_range (Number) - Lower value range
  • upper_range (Number) - Upper value range

_getLookupTable(self)

 

Return the lookup table.

Returns: vtkLookupTable
Lookup table