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

Diff of /trunk/pyvisi/py_src/plane.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 10  class Plane: Line 10  class Plane:
10      Class that defines a plane that cuts/clips rendered objects.      Class that defines a plane that cuts/clips rendered objects.
11      """      """
12    
13      def __init__(self, transform):      def __init__(self):
14          """          """
15          Initialise the plane.            Initialise the plane.  
   
         @type transform: L{Transform <transform.Transform>} object  
         @param transform: Specifies the orientation of the plane  
16          """          """
17    
         self.__transform = transform  
18          self.__vtk_plane = vtk.vtkPlane()          self.__vtk_plane = vtk.vtkPlane()
         self.__setupPlane()  
19            
20      def __setupPlane(self):      def _setupPlane(self, transform):  
21          """          """
22          Setup the plane.          Setup the plane.
23    
24            @type transform: L{Transform <transform.Transform>} object
25            @param transform: Specifies the orientation of the plane
26          """          """
27    
28            self.__transform = transform
29    
30          # Default origin of the of the plane is (0,0,0).          # Default origin of the of the plane is (0,0,0).
31          self.__setOrigin(GlobalPosition(0,0,0))          self.__setOrigin(GlobalPosition(0,0,0))
32          # Default normal of the plane is parrallel to the z-axis.          # Default normal of the plane is parrallel to the z-axis.
# Line 123  class PlaneSource: Line 123  class PlaneSource:
123    
124          self.__vtk_plane_source.SetPoint2(position._getGlobalPosition())          self.__vtk_plane_source.SetPoint2(position._getGlobalPosition())
125    
126        def _getPlaneSourceOutput(self):
     def _getOutput(self):  
127          """          """
128          Return the output of the plane source.          Return the output of the plane source.
129    

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

  ViewVC Help
Powered by ViewVC 1.1.26