/[escript]/trunk/pyvisi/py_src/lookuptable.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/lookuptable.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2549 by jfenwick, Mon Jul 20 06:43:47 2009 UTC revision 2625 by jfenwick, Fri Aug 21 06:30:25 2009 UTC
# Line 20  http://www.opensource.org/licenses/osl-3 Line 20  http://www.opensource.org/licenses/osl-3
20  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  @var __author__: name of author  :var __author__: name of author
24  @var __copyright__: copyrights  :var __copyright__: copyrights
25  @var __license__: licence agreement  :var __license__: licence agreement
26  @var __url__: url entry point on documentation  :var __url__: url entry point on documentation
27  @var __version__: version  :var __version__: version
28  @var __date__: date of the version  :var __date__: date of the version
29  """  """
30    
31  __author__="John Ngui, john.ngui@uq.edu.au"  __author__="John Ngui, john.ngui@uq.edu.au"
# Line 85  class LookupTable: Line 85  class LookupTable:
85          """          """
86          Set the value range (brightness) for the lookup table (between 0 and 1).          Set the value range (brightness) for the lookup table (between 0 and 1).
87    
88          @type lower_range: Number          :type lower_range: Number
89          @param lower_range:Lower value range          :param lower_range: Lower value range
90          @type upper_range: Number          :type upper_range: Number
91          @param upper_range: Upper value range          :param upper_range: Upper value range
92          """          """
93    
94          self.__vtk_lookup_table.SetValueRange(lower_range, upper_range)          self.__vtk_lookup_table.SetValueRange(lower_range, upper_range)
# Line 97  class LookupTable: Line 97  class LookupTable:
97          """          """
98          Set the hue (color) range for the lookup table (between 0 and 1).          Set the hue (color) range for the lookup table (between 0 and 1).
99    
100          @type lower_range: Number          :type lower_range: Number
101          @param lower_range:Lower hue range          :param lower_range: Lower hue range
102          @type upper_range: Number          :type upper_range: Number
103          @param upper_range: Upper hue range          :param upper_range: Upper hue range
104          """          """
105    
106          self.__vtk_lookup_table.SetHueRange(lower_range, upper_range)          self.__vtk_lookup_table.SetHueRange(lower_range, upper_range)
# Line 110  class LookupTable: Line 110  class LookupTable:
110          Set the saturation (vibrancy) range for the lookup table \          Set the saturation (vibrancy) range for the lookup table \
111          (between 0 and 1).          (between 0 and 1).
112    
113          @type lower_range: Number          :type lower_range: Number
114          @param lower_range:Lower saturantion range          :param lower_range: Lower saturantion range
115          @type upper_range: Number          :type upper_range: Number
116          @param upper_range: Upper saturation range          :param upper_range: Upper saturation range
117          """          """
118    
119          self.__vtk_lookup_table.SetSaturationRange(lower_range, upper_range)          self.__vtk_lookup_table.SetSaturationRange(lower_range, upper_range)
# Line 129  class LookupTable: Line 129  class LookupTable:
129          """          """
130          Set the number of values (i.e. colors) in the lookup table.          Set the number of values (i.e. colors) in the lookup table.
131    
132          @type table_values: Number          :type table_values: Number
133          @param table_values: Number of colors in the lookup table.          :param table_values: Number of colors in the lookup table.
134          """          """
135    
136          self.__vtk_lookup_table.SetNumberOfTableValues(table_values)          self.__vtk_lookup_table.SetNumberOfTableValues(table_values)
# Line 139  class LookupTable: Line 139  class LookupTable:
139          """          """
140          Return the lookup table.          Return the lookup table.
141    
142          @rtype: vtkLookupTable          :rtype: vtkLookupTable
143          @return: Lookup table          :return: Lookup table
144          """          """
145    
146          return self.__vtk_lookup_table          return self.__vtk_lookup_table

Legend:
Removed from v.2549  
changed lines
  Added in v.2625

  ViewVC Help
Powered by ViewVC 1.1.26