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

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

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

revision 844 by jongui, Wed Sep 6 04:53:50 2006 UTC revision 845 by jongui, Fri Sep 8 07:13:01 2006 UTC
# Line 1  Line 1 
1  """  """
   
2  @author: John Ngui  @author: John Ngui
3  @author: Lutz Gross  @author: Lutz Gross
4  """  """
# Line 11  class Common: Line 10  class Common:
10      Class that defines the common operations invoked by the components.      Class that defines the common operations invoked by the components.
11      """      """
12    
13      def __init__(self, scene, data_collector):      def __init__(self, scene, data_collector = None):
14          """          """
15          Initialize all the instance variables.          Initialize all the instance variables.
16    
17          @type scene: L{OpenScene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
18          @param scene: Scene in which components are to be added to          @param scene: Scene in which components are to be added to
19          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
20              object              object
# Line 52  class Common: Line 51  class Common:
51          self.vtk_actor = vtk.vtkActor()          self.vtk_actor = vtk.vtkActor()
52          self.vtk_actor.SetMapper(self.vtk_mapper)          self.vtk_actor.SetMapper(self.vtk_mapper)
53    
54        def setTexture(self, texture):
55            self.vtk_actor.SetTexture(texture)
56    
57      def addActor(self):      def addActor(self):
58          """          """
59          Add the actor to the renderer.          Add the actor to the renderer.

Legend:
Removed from v.844  
changed lines
  Added in v.845

  ViewVC Help
Powered by ViewVC 1.1.26