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

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

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

revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2313 by gross, Tue Mar 17 03:41:17 2009 UTC
# Line 32  __author__="John Ngui, john.ngui@uq.edu. Line 32  __author__="John Ngui, john.ngui@uq.edu.
32    
33    
34  import vtk  import vtk
35    from esys.escript import getMPISizeWorld
36    
37  class Actor3D:  class Actor3D:
38      """      """
# Line 42  class Actor3D: Line 43  class Actor3D:
43          """          """
44          Initialise the 3D actor.          Initialise the 3D actor.
45          """          """
46                    if getMPISizeWorld()>1:
47                         raise ValueError,"pyvisi.Actor3D is not running on more than one processor."
48          self.__vtk_actor3D = vtk.vtkActor()          self.__vtk_actor3D = vtk.vtkActor()
49    
50      def _setupActor3D(self, mapper):      def _setupActor3D(self, mapper):
# Line 136  class Actor2D: Line 138  class Actor2D:
138          """          """
139          Initialise the 2D actor.          Initialise the 2D actor.
140          """          """
141                    if getMPISizeWorld()>1:
142                         raise ValueError,"pyvisi.Actor2D is not running on more than one processor."
143          self._vtk_actor2D = vtk.vtkActor2D()          self._vtk_actor2D = vtk.vtkActor2D()
144    
145      def _setupActor2D(self, mapper):      def _setupActor2D(self, mapper):

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

  ViewVC Help
Powered by ViewVC 1.1.26