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

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

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

revision 851 by jongui, Mon Sep 11 07:40:09 2006 UTC revision 852 by jongui, Wed Sep 20 03:23:16 2006 UTC
# Line 17  class Light: Line 17  class Light:
17          """          """
18    
19          self.scene = scene          self.scene = scene
20          self.vtk_light = None          self.vtk_light = vtk.vtkLight()
21    
22          self.setLight()          self.setLight()
23    
# Line 25  class Light: Line 25  class Light:
25          """          """
26          Set up the light and associate it with the renderer.          Set up the light and associate it with the renderer.
27          """          """
         self.vtk_light = vtk.vtkLight()  
28          self.scene.getRenderer().AddLight(self.vtk_light)          self.scene.getRenderer().AddLight(self.vtk_light)
29    
30      def setColor(self, colorMap):      def setColor(self, colorMap):

Legend:
Removed from v.851  
changed lines
  Added in v.852

  ViewVC Help
Powered by ViewVC 1.1.26