/[escript]/trunk/doc/examples/pyvisi/seriesofreads.py
ViewVC logotype

Diff of /trunk/doc/examples/pyvisi/seriesofreads.py

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

revision 1188 by jongui, Thu May 17 06:33:54 2007 UTC revision 1189 by jongui, Thu Jun 7 05:31:25 2007 UTC
# Line 20  JPG_RENDERER = Renderer.ONLINE_JPG Line 20  JPG_RENDERER = Renderer.ONLINE_JPG
20  s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,  s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
21          y_size = Y_SIZE)          y_size = Y_SIZE)
22    
23  # Create a DataCollector reading from a XML file. An initial file must always  # Create a DataCollector reading from a XML file.
 # be assigned when the DataCollector is created, although the same file is  
 # read again in the for-loop.    
24  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
 dc1.setFileName(file_name = os.path.join(PYVISI_EXAMPLE_MESHES_PATH, \  
         FIRST_FILE_NAME))  
25  dc1.setActiveScalar(scalar = SCALAR_FIELD_POINT_DATA_1)  dc1.setActiveScalar(scalar = SCALAR_FIELD_POINT_DATA_1)
26    
27  # Create a Contour.  # Create a Contour.
# Line 36  mosc1.generateContours(0) Line 32  mosc1.generateContours(0)
32    
33  # Create a second DataCollector reading from the same XML file.  # Create a second DataCollector reading from the same XML file.
34  dc2 = DataCollector(source = Source.XML)  dc2 = DataCollector(source = Source.XML)
 dc2.setFileName(file_name = os.path.join(PYVISI_EXAMPLE_MESHES_PATH, \  
         FIRST_FILE_NAME))  
35  dc2.setActiveScalar(scalar = SCALAR_FIELD_POINT_DATA_2)  dc2.setActiveScalar(scalar = SCALAR_FIELD_POINT_DATA_2)
36    
37  # Create a second Contour.  # Create a second Contour.

Legend:
Removed from v.1188  
changed lines
  Added in v.1189

  ViewVC Help
Powered by ViewVC 1.1.26