/[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 1193 by jongui, Tue May 22 04:24:01 2007 UTC revision 1194 by jongui, Thu Jun 14 05:53:49 2007 UTC
# Line 176  class Camera: Line 176  class Camera:
176                    
177      def dolly(self, distance):      def dolly(self, distance):
178          """          """
179          Move the camera towards (greater than 1) and away (less than 1) from          Move the camera towards (greater than 1) the rendered object. However,
180          the rendered object.          the camera is unable to be moved away from the rendered object.
181    
182          @type distance: Number          @type distance: Number
183          @param distance: Amount to move towards or away the rendered object          @param distance: Amount to move towards the rendered object
184          """          """
185    
186          self.__vtk_camera.Dolly(distance)          self.__vtk_camera.Dolly(distance)
187          self.__modified = True          self.__modified = True
188    
189        def parallelProjectionOn(self):
190            """
191            Enable camera parallel projection.
192            """
193    
194            self.__vtk_camera.ParallelProjectionOn()
195            self.__modified = True
196    
197        def parallelProjectionOff(self):
198            """
199            Disable camera parallel projection.
200            """
201    
202            self.__vtk_camera.ParallelProjectionOff()
203            self.__modified = True
204    
205      def __resetCameraClippingRange(self, scene):      def __resetCameraClippingRange(self, scene):
206          """          """
207          Reset the camera clipping range based on the bounds of the visible          Reset the camera clipping range based on the bounds of the visible
# Line 236  class Camera: Line 252  class Camera:
252                  self.__initialization == False                  self.__initialization == False
253    
254              self.__resetCameraClippingRange(scene)              self.__resetCameraClippingRange(scene)
255              self.__isModified = False              self.__modified = False
256                            
257    

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.26