/[escript]/branches/windows_from_1456_trunk_merge_to_1459_trunk/pyvisi/py_src/cutter.py
ViewVC logotype

Diff of /branches/windows_from_1456_trunk_merge_to_1459_trunk/pyvisi/py_src/cutter.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 Cutter: Line 9  class Cutter:
9      Class that defines a cutter.      Class that defines a cutter.
10      """      """
11    
12      def __init__(self, object, plane):      def __init__(self):
13          """          """
14          Initialise the cutter.          Initialise the cutter.
15            """
16    
17            self.__vtk_cutter = vtk.vtkCutter()
18    
19        def _setupCutter(self, object, plane):
20            """
21            Setup the cutter.
22    
23          @type object: vtkUnstructuredGrid, etc          @type object: vtkUnstructuredGrid, etc
24          @param object: Input for the cutter          @param object: Input for the cutter
# Line 21  class Cutter: Line 28  class Cutter:
28    
29          self.__object = object          self.__object = object
30          self.__plane = plane          self.__plane = plane
         self.__vtk_cutter = vtk.vtkCutter()  
       
         self.__setupCutter()  
   
     def __setupCutter(self):  
         """  
         Setup the cutter.  
         """  
31    
32          self.__setInput()          self.__setInput()
33          self.__setCutFunction()          self.__setCutFunction()
         self.__vtk_cutter.Update()  
34    
35      def __setInput(self):      def __setInput(self):
36          """          """
# Line 48  class Cutter: Line 46  class Cutter:
46    
47          self.__vtk_cutter.SetCutFunction(self.__plane)          self.__vtk_cutter.SetCutFunction(self.__plane)
48    
49      def _getOutput(self):      def _getCutterOutput(self):
50          """          """
51          Return the output of the cutter.          Return the output of the cutter.
52    

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

  ViewVC Help
Powered by ViewVC 1.1.26