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

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

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

revision 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC
# Line 9  class Clipper: Line 9  class Clipper:
9      Class that defines a clipper.      Class that defines a clipper.
10      """      """
11            
12      def __init__(self, object, plane):      def __init__(self):
13          """          """
14          Initialise the clipper.          Initialise the clipper.
15            """
16            
17            self.__vtk_clipper = vtk.vtkClipDataSet()
18    
19        def _setupClipper(self, object, plane):
20            """
21            Setup the clipper.
22    
23          @type object: vtkUnstructuredGrid, etc          @type object: vtkUnstructuredGrid, etc
24          @param object: Input for the clipper          @param object: Input for the clipper
# Line 24  class Clipper: Line 31  class Clipper:
31          # scalar clipping.          # scalar clipping.
32          if(plane != None):          if(plane != None):
33              self.__plane = plane              self.__plane = plane
34                        
         self.__vtk_clipper = vtk.vtkClipDataSet()  
         self.__setupClipper()  
   
     def __setupClipper(self):  
         """  
         Setup the clipper.  
         """  
   
35          self.__setInput()          self.__setInput()
36          self.setInsideOutOn()          self.setInsideOutOn()
         self.__vtk_clipper.Update()  
37    
38      def __setInput(self):      def __setInput(self):
39          """          """
# Line 75  class Clipper: Line 73  class Clipper:
73    
74          self.__vtk_clipper.SetValue(value)          self.__vtk_clipper.SetValue(value)
75    
76      def _getOutput(self):      def _getClipperOutput(self):
77          """          """
78          Return the output of the clipper.          Return the output of the clipper.
79    

Legend:
Removed from v.1147  
changed lines
  Added in v.1148

  ViewVC Help
Powered by ViewVC 1.1.26