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

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

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

revision 851 by jongui, Fri Sep 15 07:11:55 2006 UTC revision 852 by jongui, Wed Sep 20 03:23:16 2006 UTC
# Line 35  class Contour(Common): Line 35  class Contour(Common):
35    
36          self.vtk_contour.SetInput(self.data_collector.getReader().GetOutput())          self.vtk_contour.SetInput(self.data_collector.getReader().GetOutput())
37    
     def setValue(self, contour_number, value):  
         """  
         Set the contour number and its value.  
   
         @type contour_number: Number  
         @param contour_number: Contour number  
         @type value: Number  
         @param value: Contour value  
         """  
   
         self.vtk_contour.SetValue(contour_number, value)  
38    
39      def generateValues(self, number_contours, min_range, max_range):      def generateValues(self, number_contours, min_range, max_range):
40          """          """
# Line 61  class Contour(Common): Line 50  class Contour(Common):
50    
51          self.vtk_contour.GenerateValues(number_contours, min_range, max_range)          self.vtk_contour.GenerateValues(number_contours, min_range, max_range)
52    
53    
54  from contour import Contour  from contour import Contour
55  from plane import Plane  from plane import Plane
56    
# Line 84  class ContourOnPlane(Contour, Plane): Line 74  class ContourOnPlane(Contour, Plane):
74    
75          Plane.__init__(self, scene, data_collector,          Plane.__init__(self, scene, data_collector,
76              self.vtk_contour.GetOutput(), lut)              self.vtk_contour.GetOutput(), lut)
77    
78    
79    from contour import Contour
80    
81    class IsoSurface(Contour):
82    
83        def __init__(self, scene, data_collector, lut = None):
84            Contour.__init__(self, scene, data_collector, lut)
85    
86        def setValue(self, contour_number, value):
87            """
88            Set the contour number and its value.
89    
90            @type contour_number: Number
91            @param contour_number: Contour number
92            @type value: Number
93            @param value: Contour value
94            """
95    
96            self.vtk_contour.SetValue(contour_number, value)
97    
98    from contour import IsoSurface, ContourOnPlane
99    
100    class IsoSurfaceOnPlane(IsoSurface, ContourOnPlane):
101    
102        def __init__(self, scene, data_collector, lut = None):
103            ContourOnPlane.__init__(self, scene, data_collector, lut)
104            

Legend:
Removed from v.851  
changed lines
  Added in v.852

  ViewVC Help
Powered by ViewVC 1.1.26