/[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 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 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 = []          # Stores the visualization modules (i.e. Map, Velocity, Ellipsoid, etc)
36            # which needs to be rendered.
37            self.__visualization_modules = []
38    
39          self.__OFFLINE = "offline"          self.__OFFLINE = "offline"
40          self.__JPG = "jpg"          self.__JPG = "jpg"
# Line 235  class Scene: Line 237  class Scene:
237          Render the object using either the online, offline or display mode.          Render the object using either the online, offline or display mode.
238          """          """
239    
240          for i in range(0, len(self.__modules)):          for i in range(0, len(self.__visualization_modules)):
241              self.__modules[i]._render()              self.__visualization_modules[i]._render()  
242    
243          self.__vtk_render_window.Render()          self.__vtk_render_window.Render()
244    
# Line 312  class Scene: Line 314  class Scene:
314            
315          return self.__vtk_renderer          return self.__vtk_renderer
316    
317      def _addModules(self, module):      def _addVisualizationModules(self, module):
318          print "Module: ", module          """
319          self.__modules.append(module)          Store visualization modules (i.e. Map, Velocity, Ellipsoid, etc)
320            which needs to be rendered.
321            
322            @type module: Visualization object
323            @param module: Visualization object to be rendered
324            """
325    
326            self.__visualization_modules.append(module)
327    

Legend:
Removed from v.1147  
changed lines
  Added in v.1148

  ViewVC Help
Powered by ViewVC 1.1.26