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

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

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

revision 859 by jongui, Wed Sep 20 03:23:16 2006 UTC revision 860 by jongui, Thu Sep 28 08:17:29 2006 UTC
# Line 16  class Lut: Line 16  class Lut:
16      def setHue(self, lower_range, upper_range):      def setHue(self, lower_range, upper_range):
17          """          """
18          Set the upper and lower hue(color) range.          Set the upper and lower hue(color) range.
   
19          @type lower_range: Number          @type lower_range: Number
20          @param lower_range: Lower range of the hue          @param lower_range: Lower range of the hue
21          @type upper_range: Number          @type upper_range: Number
# Line 28  class Lut: Line 27  class Lut:
27      def setSaturation(self, lower_range, upper_range):      def setSaturation(self, lower_range, upper_range):
28          """          """
29          Set the upper and lower saturation(vibrancy) range.          Set the upper and lower saturation(vibrancy) range.
       
30          @type lower_range: Number          @type lower_range: Number
31          @param lower_range: Lower range of the saturation          @param lower_range: Lower range of the saturation
32          @type upper_range: Number          @type upper_range: Number
# Line 51  class Lut: Line 49  class Lut:
49                    
50      def getLut(self):      def getLut(self):
51          """          """
52          Return the VTK lookup table.          Return the lookup table.
53    
54          @rtype: vtkLookupTable          @rtype: vtkLookupTable
55          @return: VTK Lookup table          @return: VTK Lookup table that changes the color spectrum
56          """          """
57    
58          return self.vtk_lut          return self.vtk_lut
59    
60    from colormap import Lut
61    
62  class BlueToRed(Lut):  class BlueToRed(Lut):
63      """      """
64      Class that creates a map with spectrum from blue to red.      Class that creates a map with spectrum from blue to red.
# Line 68  class BlueToRed(Lut): Line 68  class BlueToRed(Lut):
68          Lut.__init__(self)          Lut.__init__(self)
69          self.setHue(0.667, 0.0)          self.setHue(0.667, 0.0)
70    
71    from colormap import Lut
72    
73  class RedToBlue(Lut):  class RedToBlue(Lut):
74      """      """
75      Class that creates a map with spectrum from red to blue.      Class that creates a map with spectrum from red to blue.
# Line 77  class RedToBlue(Lut): Line 79  class RedToBlue(Lut):
79          Lut.__init__(self)          Lut.__init__(self)
80          self.setHue(0.0, 0.667)          self.setHue(0.0, 0.667)
81    
   
   

Legend:
Removed from v.859  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.26