/[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 1001 by jongui, Mon Feb 26 03:43:13 2007 UTC revision 1002 by jongui, Wed Feb 28 06:51:33 2007 UTC
# Line 57  class Actor3D: Line 57  class Actor3D:
57          """          """
58    
59          # NOTE: Must be used before actor.GetProperty().SetColor()          # NOTE: Must be used before actor.GetProperty().SetColor()
60          # in order for the change of color of the rendered objects to take          # in order for the change of color to take effect.
         # effect.  
61          self.__mapper.ScalarVisibilityOff()          self.__mapper.ScalarVisibilityOff()
62    
63          # NOTE: Must be used after mapper.ScalarVisibilityOff()          # NOTE: Must be used after mapper.ScalarVisibilityOff()
64          # in order for the change of color of the rendered objects to take          # in order for the change of color to take effect.
         # effect.  
65          self.__vtk_actor3D.GetProperty().SetColor(color)          self.__vtk_actor3D.GetProperty().SetColor(color)
66    
67      def setRepresentationToWireframe(self):      def setRepresentationToWireframe(self):
# Line 106  class Actor2D: Line 104  class Actor2D:
104          """          """
105          Initialise the 2D actor.          Initialise the 2D actor.
106    
107          @type mapper: vtkMapper2D, etc          @type mapper: vtkMapper2D
108          @param mapper: Mapped data          @param mapper: Mapped data
109          """          """
110    
# Line 124  class Actor2D: Line 122  class Actor2D:
122      def setPosition(self, position):      def setPosition(self, position):
123          """          """
124          Set the position of the 2D actor. Default position is the lower left          Set the position of the 2D actor. Default position is the lower left
125          hand corner of the window.          hand corner of the window / viewport.
126    
127          @type position: L{LocalPosition <position.LocalPosition>} object          @type position: L{LocalPosition <position.LocalPosition>} object
128          @param position: Position of the 2D actor          @param position: Position of the 2D actor

Legend:
Removed from v.1001  
changed lines
  Added in v.1002

  ViewVC Help
Powered by ViewVC 1.1.26