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

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

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

revision 1114 by jongui, Sun Apr 22 05:16:05 2007 UTC revision 1115 by jongui, Sun Apr 22 07:18:30 2007 UTC
# Line 32  class Scene: Line 32  class Scene:
32          self.__num_viewport = num_viewport          self.__num_viewport = num_viewport
33          self.__x_size = x_size          self.__x_size = x_size
34          self.__y_size = y_size          self.__y_size = y_size
35            self.__modules = []
36    
37          self.__OFFLINE = "offline"          self.__OFFLINE = "offline"
38          self.__JPG = "jpg"          self.__JPG = "jpg"
# Line 234  class Scene: Line 235  class Scene:
235          Render the object using either the online, offline or display mode.          Render the object using either the online, offline or display mode.
236          """          """
237    
238            for i in range(0, len(self.__modules)):
239                self.__modules[i]._render()
240    
241          self.__vtk_render_window.Render()          self.__vtk_render_window.Render()
242    
243          if(self.__renderer.startswith(Renderer.ONLINE)):          if(self.__renderer.startswith(Renderer.ONLINE)):
# Line 308  class Scene: Line 312  class Scene:
312            
313          return self.__vtk_renderer          return self.__vtk_renderer
314    
315        def _addModules(self, module):
316            print "Module: ", module
317            self.__modules.append(module)

Legend:
Removed from v.1114  
changed lines
  Added in v.1115

  ViewVC Help
Powered by ViewVC 1.1.26