/[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 1197 by jongui, Mon Jun 18 02:08:34 2007 UTC
# Line 1  Line 1 
1  """  """
2  @author: John NGUI  @var __author__: name of author
3    @var __copyright__: copyrights
4    @var __license__: licence agreement
5    @var __url__: url entry point on documentation
6    @var __version__: version
7    @var __date__: date of the version
8  """  """
9    
10    __author__="John Ngui, john.ngui@uq.edu.au"
11    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
12                        http://www.access.edu.au
13                    Primary Business: Queensland, Australia"""
14    __license__="""Licensed under the Open Software License version 3.0
15                 http://www.opensource.org/licenses/osl-3.0.php"""
16    __url__="http://www.iservo.edu.au/esys"
17    __version__="$Revision$"
18    __date__="$Date$"
19    
20    
21  import vtk  import vtk
22  from position import GlobalPosition  from position import GlobalPosition
23    
# Line 10  class Plane: Line 26  class Plane:
26      Class that defines a plane that cuts/clips rendered objects.      Class that defines a plane that cuts/clips rendered objects.
27      """      """
28    
29      def __init__(self, transform):      def __init__(self):
30          """          """
31          Initialise the plane.            Initialise the plane.  
   
         @type transform: L{Transform <transform.Transform>} object  
         @param transform: Specifies the orientation of the plane  
32          """          """
33    
         self.__transform = transform  
34          self.__vtk_plane = vtk.vtkPlane()          self.__vtk_plane = vtk.vtkPlane()
         self.__setupPlane()  
35            
36      def __setupPlane(self):      def _setupPlane(self, transform):  
37          """          """
38          Setup the plane.          Setup the plane.
39    
40            @type transform: L{Transform <transform.Transform>} object
41            @param transform: Specifies the orientation of the plane
42          """          """
43    
44            self.__transform = transform
45    
46          # Default origin of the of the plane is (0,0,0).          # Default origin of the of the plane is (0,0,0).
47          self.__setOrigin(GlobalPosition(0,0,0))          self.__setOrigin(GlobalPosition(0,0,0))
48          # 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 139  class PlaneSource:
139    
140          self.__vtk_plane_source.SetPoint2(position._getGlobalPosition())          self.__vtk_plane_source.SetPoint2(position._getGlobalPosition())
141    
142        def _getPlaneSourceOutput(self):
     def _getOutput(self):  
143          """          """
144          Return the output of the plane source.          Return the output of the plane source.
145    

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

  ViewVC Help
Powered by ViewVC 1.1.26