/[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 2549 by jfenwick, Mon Jul 20 06:43:47 2009 UTC revision 2625 by jfenwick, Fri Aug 21 06:30:25 2009 UTC
# Line 20  http://www.opensource.org/licenses/osl-3 Line 20  http://www.opensource.org/licenses/osl-3
20  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  @var __author__: name of author  :var __author__: name of author
24  @var __copyright__: copyrights  :var __copyright__: copyrights
25  @var __license__: licence agreement  :var __license__: licence agreement
26  @var __url__: url entry point on documentation  :var __url__: url entry point on documentation
27  @var __version__: version  :var __version__: version
28  @var __date__: date of the version  :var __date__: date of the version
29  """  """
30    
31  __author__="John Ngui, john.ngui@uq.edu.au"  __author__="John Ngui, john.ngui@uq.edu.au"
# Line 51  class Actor3D: Line 51  class Actor3D:
51          """          """
52          Setup the 3D actor.          Setup the 3D actor.
53    
54          @type mapper: vtkDataSetMapper          :type mapper: vtkDataSetMapper
55          @param mapper: Mapped data          :param mapper: Mapped data
56          """          """
57    
58          self.__mapper = mapper          self.__mapper = mapper
# Line 69  class Actor3D: Line 69  class Actor3D:
69          """          """
70          Set the texture of the 3D actor.              Set the texture of the 3D actor.    
71    
72          @type texture: vtkTexture          :type texture: vtkTexture
73          @param texture: Texture of the rendered object          :param texture: Texture of the rendered object
74          """          """
75    
76          self.__vtk_actor3D.SetTexture(texture)          self.__vtk_actor3D.SetTexture(texture)
# Line 79  class Actor3D: Line 79  class Actor3D:
79          """          """
80          Set the opacity (transparency) of the 3D actor.          Set the opacity (transparency) of the 3D actor.
81    
82          @type opacity: Number (between 0 and 1)          :type opacity: Number (between 0 and 1)
83          @param opacity: Opacity (transparency) of the 3D actor          :param opacity: Opacity (transparency) of the 3D actor
84          """          """
85            
86          self.__vtk_actor3D.GetProperty().SetOpacity(opacity)          self.__vtk_actor3D.GetProperty().SetOpacity(opacity)
# Line 89  class Actor3D: Line 89  class Actor3D:
89          """          """
90          Set the color of the 3D actor.          Set the color of the 3D actor.
91    
92          @type color: L{Color <constant.Color>} constant          :type color: `Color` constant
93          @param color: Color of the 3D actor          :param color: Color of the 3D actor
94          """          """
95    
96          # NOTE: Must be used before actor.GetProperty().SetColor()          # NOTE: Must be used before actor.GetProperty().SetColor()
# Line 109  class Actor3D: Line 109  class Actor3D:
109          """          """
110          Set the line width of the 3D actor.          Set the line width of the 3D actor.
111    
112          @type line_width: Number          :type line_width: Number
113          @param line_width: 3D actor line width          :param line_width: 3D actor line width
114          """          """
115    
116          self.__vtk_actor3D.GetProperty().SetLineWidth(line_width)                self.__vtk_actor3D.GetProperty().SetLineWidth(line_width)      
# Line 119  class Actor3D: Line 119  class Actor3D:
119          """          """
120          Return the 3D actor.          Return the 3D actor.
121    
122          @rtype: vtkActor          :rtype: vtkActor
123          @return: 3D actor          :return: 3D actor
124          """          """
125    
126          return self.__vtk_actor3D          return self.__vtk_actor3D
# Line 146  class Actor2D: Line 146  class Actor2D:
146          """          """
147          Setup the 2D actor.          Setup the 2D actor.
148    
149          @type mapper: vtkMapper2D          :type mapper: vtkMapper2D
150          @param mapper: Mapped data          :param mapper: Mapped data
151          """          """
152    
153          self.__mapper = mapper          self.__mapper = mapper
# Line 165  class Actor2D: Line 165  class Actor2D:
165          Set the position (XY) of the 2D actor. Default position is the lower          Set the position (XY) of the 2D actor. Default position is the lower
166          left hand corner of the window / viewport.          left hand corner of the window / viewport.
167    
168          @type position: L{LocalPosition <position.LocalPosition>} object          :type position: `LocalPosition` object
169          @param position: Position of the 2D actor          :param position: Position of the 2D actor
170          """          """
171    
172          self._vtk_actor2D.SetPosition(position._getLocalPosition())          self._vtk_actor2D.SetPosition(position._getLocalPosition())
# Line 175  class Actor2D: Line 175  class Actor2D:
175          """          """
176          Return the 2D actor.              Return the 2D actor.    
177    
178          @rtype: vtkActor2D          :rtype: vtkActor2D
179          @return 2D actor          :return: 2D actor
180          """          """
181    
182          return self._vtk_actor2D          return self._vtk_actor2D

Legend:
Removed from v.2549  
changed lines
  Added in v.2625

  ViewVC Help
Powered by ViewVC 1.1.26