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

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

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

revision 1193 by jongui, Tue Jun 12 05:54:41 2007 UTC revision 1194 by jongui, Thu Jun 14 05:53:49 2007 UTC
# Line 27  m1 = Map(scene = s, data_collector = dc1 Line 27  m1 = Map(scene = s, data_collector = dc1
27          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, cell_to_point = False,          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, cell_to_point = False,
28          outline = True)          outline = True)
29    
 # Create a Velocity.  
 vopc1 = Velocity(scene = s, data_collector = dc1,  
         viewport = Viewport.SOUTH_WEST, color_mode = ColorMode.VECTOR,  
         arrow = Arrow.TWO_D, lut = Lut.COLOR, cell_to_point = False,  
         outline = True)  
 vopc1.setScaleFactor(scale_factor = 0.07)  
 vopc1.setRatio(ratio = 8)  
 vopc1.setColor(color = Color.BLACK)  
   
 # Create a scalar Legend.  
 sb = Legend(scene = s, data_collector= dc1, viewport = Viewport.SOUTH_WEST,  
         lut = Lut.COLOR, legend = LegendType.SCALAR)  
 sb.setOrientationToHorizontal()  
 sb.setPosition(LocalPosition(85,5))  
 sb.setScalarRange(0, 1)  
 sb.setLabelColor(color = Color.BLACK)  
 sb.setTitleColor(Color.BLACK)  
 sb.setTitle("Temperature")  
   
30  # Create a Camera.  # Create a Camera.
31  cam1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)  cam1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
32    
# Line 63  for i in range(938, 949): Line 44  for i in range(938, 949):
44  # Generate the movie from the rendered images.  # Generate the movie from the rendered images.
45  mov.makeMovie(input_directory = PYVISI_EXAMPLE_IMAGES_PATH,  mov.makeMovie(input_directory = PYVISI_EXAMPLE_IMAGES_PATH,
46          first_image = IMAGE_NAME + "000938.jpg",          first_image = IMAGE_NAME + "000938.jpg",
47          last_image = IMAGE_NAME + "000949.jpg",          last_image = IMAGE_NAME + "000948.jpg",
48          movie = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, "movie.mpg"))          movie = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, "movie.mpg"))
49    

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.26