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

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

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

revision 2312 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2313 by gross, Tue Mar 17 03:41:17 2009 UTC
# Line 34  __author__="John Ngui, john.ngui@uq.edu. Line 34  __author__="John Ngui, john.ngui@uq.edu.
34  import vtk  import vtk
35  from position import GlobalPosition  from position import GlobalPosition
36  from constant import Viewport  from constant import Viewport
37    from esys.escript import getMPISizeWorld
38    
39  class Light:  class Light:
40      """      """
# Line 52  class Light: Line 53  class Light:
53          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
54          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
55          """          """
56                    if getMPISizeWorld()>1:
57                         raise ValueError,"pyvisi.Light is not running on more than one processor."
58    
59          self.__viewport = viewport          self.__viewport = viewport
60          self.__vtk_light = vtk.vtkLight()          self.__vtk_light = vtk.vtkLight()

Legend:
Removed from v.2312  
changed lines
  Added in v.2313

  ViewVC Help
Powered by ViewVC 1.1.26