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

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

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

revision 946 by jongui, Tue Jan 30 22:34:27 2007 UTC revision 947 by jongui, Wed Jan 31 07:17:43 2007 UTC
# Line 31  class ContourModule: Line 31  class ContourModule:
31    
32      # lower_range and upper_range by default is assigned to None. This allows      # lower_range and upper_range by default is assigned to None. This allows
33      # the contours to be altered without necessarily having to alter the      # the contours to be altered without necessarily having to alter the
34      # lower_range and upper_range.      # lower_range and upper_range together.
35      def generateContours(self, contours, lower_range = None,      def generateContours(self, contours, lower_range = None,
36              upper_range = None):              upper_range = None):
37          """          """
38          Generate the specified number of contours withing the specified range.          Generate the specified number of contours within the specified range.
39    
40          @type contours: Number          @type contours: Number
41          @param contours: Number of contours to generate          @param contours: Number of contours to generate
42          @type lower_range: Number          @type lower_range: Number
43          @param lower_range: Lower range of the contours          @param lower_range: Lower range of contour values
44          @type upper_range: Number          @type upper_range: Number
45          @param upper_range: Upper range of the contours          @param upper_range: Upper range of contours values
46          """          """
47    
48          if(lower_range != None): # True if the lower_range is altered.          if(lower_range != None): # True if the lower_range is specified.
49              self.__lower_range = lower_range              self.__lower_range = lower_range
50          if(upper_range != None): # True if the upper_range is altered.          if(upper_range != None): # True if the upper_range is specified.
51              self.__upper_range = upper_range              self.__upper_range = upper_range
52    
53          self.__vtk_contour.GenerateValues(contours, self.__lower_range,          self.__vtk_contour.GenerateValues(contours, self.__lower_range,
54                  self.__upper_range)                  self.__upper_range)
55    
     # NOTE: Method not used at the moment.  
     def setValue(self, contour, value):  
         """  
         Set the specific contour value.  
   
         @type contour: Number  
         @param contour: Contour  
         @type value: Number  
         @param value: Contour value  
         """  
   
         self.__vtk_contour.SetValue(contour, value)  
   
   
56      def _getOutput(self):      def _getOutput(self):
57          """          """
58          Return the output of the contour.          Return the output of the contour.

Legend:
Removed from v.946  
changed lines
  Added in v.947

  ViewVC Help
Powered by ViewVC 1.1.26