/[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 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC
# Line 9  class Actor3D: Line 9  class Actor3D:
9      Class that defines a 3D actor.      Class that defines a 3D actor.
10      """      """
11            
12      def __init__(self, mapper):      def __init__(self):
13          """          """
14          Initialise the 3D actor.          Initialise the 3D actor.
15            """
16    
17            self.__vtk_actor3D = vtk.vtkActor()
18    
19        def _setupActor3D(self, mapper):
20            """
21            Setup the 3D actor.
22    
23          @type mapper: vtkDataSetMapper          @type mapper: vtkDataSetMapper
24          @param mapper: Mapped data          @param mapper: Mapped data
25          """          """
26    
27          self.__mapper = mapper          self.__mapper = mapper
         self.__vtk_actor3D = vtk.vtkActor()  
28          self.__setMapper()          self.__setMapper()
29            
30      def __setMapper(self):      def __setMapper(self):
31          """          """
32          Set the mapper of the 3D actor.          Set the mapper of the 3D actor.
# Line 100  class Actor2D: Line 106  class Actor2D:
106      Class that defines a 2D actor.      Class that defines a 2D actor.
107      """      """
108    
109      def __init__(self, mapper):      def __init__(self):
110          """          """
111          Initialise the 2D actor.          Initialise the 2D actor.
112            """
113    
114            self._vtk_actor2D = vtk.vtkActor2D()
115    
116        def _setupActor2D(self, mapper):
117            """
118            Setup the 2D actor.
119    
120          @type mapper: vtkMapper2D          @type mapper: vtkMapper2D
121          @param mapper: Mapped data          @param mapper: Mapped data
122          """          """
123    
124          self.__mapper = mapper          self.__mapper = mapper
         self._vtk_actor2D = vtk.vtkActor2D()  
125          self.__setMapper()          self.__setMapper()
126    
127      def __setMapper(self):      def __setMapper(self):

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

  ViewVC Help
Powered by ViewVC 1.1.26