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

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

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

revision 833 by jongui, Fri Sep 1 07:48:20 2006 UTC revision 835 by jongui, Mon Sep 4 22:20:28 2006 UTC
# Line 1  Line 1 
1  """  """
2  Class and functions associated with cameras and views  Class and functions associated with cameras and views
   
 @var __author__: name of author  
 @var __license__: licence agreement  
 @var __copyright__: copyrights  
 @var __url__: url entry point on documentation  
 @var __version__: version  
 @var __date__: date of the version  
3  """  """
4    
 __copyright__="""  Copyright (c) 2006 by ACcESS MNRF  
                     http://www.access.edu.au  
                 Primary Business: Queensland, Australia"""  
 __license__="""Licensed under the Open Software License version 3.0  
              http://www.opensource.org/licenses/osl-3.0.php"""  
 __author__="Paul Cochrane, L. Gross"  
 __url__="http://www.iservo.edu.au/esys"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
   
5  import vtk  import vtk
6    
   
7  class Camera:  class Camera:
8      def __init__(self, open_scene):      def __init__(self, open_scene):
9          self.open_scene = open_scene          self.open_scene = open_scene
# Line 36  class Camera: Line 18  class Camera:
18      def setClippingRange(self, near_clipping, far_clipping):      def setClippingRange(self, near_clipping, far_clipping):
19          self.vtk_camera.SetClippingRange(near_clipping, far_clipping)          self.vtk_camera.SetClippingRange(near_clipping, far_clipping)
20    
21      def setFocalPoint(self, x_coor, y_coor, z_coor):      def setFocalPoint(self, position):
22          self.vtk_camera.SetFocalPoint(x_coor, y_coor, z_coor)            self.vtk_camera.SetFocalPoint(position.getXCoor(), position.getYCoor(),
23                position.getZCoor())    
24      def setPosition(self, x_coor, y_coor, z_coor):  
25          self.vtk_camera.SetPosition(x_coor, y_coor, z_coor)      def setPosition(self, position):
26            self.vtk_camera.SetPosition(position.getXCoor(), position.getYCoor(),
27      def setViewUp(self, x_view, y_view, z_view):              position.getZCoor())
28          self.vtk_camera.SetViewUp(x_view, y_view, z_view)  
29        def setViewUp(self, position):
30            self.vtk_camera.SetViewUp(position.getXCoor(), position.getYCoor(),
31                position.getZCoor())
32    
33    
34    

Legend:
Removed from v.833  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.26