/[escript]/trunk/pyvisi/drivers/drivermultiplereads.py
ViewVC logotype

Annotation of /trunk/pyvisi/drivers/drivermultiplereads.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (hide annotations)
Tue Nov 7 23:42:31 2006 UTC (14 years, 5 months ago) by jongui
File MIME type: text/x-python
File size: 912 byte(s)
drivers added
1 jongui 889 from scene import Scene
2     from datacollector import DataCollector
3     from camera import Camera
4     from map import Map
5     from colormap import BlueToRed
6    
7     s = Scene(renderer = "vtk_jpeg", x_size = 1100, y_size = 800)
8     dc = DataCollector(scene = s, outline = True, cube_axes = False)
9     # NOTE: Must be executed before the map.
10     dc.setFileName(file_name = "../../../data/lutz/movie/temp.0.xml")
11    
12     cam = Camera(scene = s, data_collector = dc)
13     cam.azimuth(180)
14     cam.elevation(30)
15     cam.roll(-20)
16    
17     br = BlueToRed()
18     # NOTE: Must be executed before the for loop. Otherwise, results can be
19     # incorrect.
20     map = Map(scene = s, data_collector = dc, lut = br)
21    
22     # Read multiple files.
23     for i in range(0 ,80):
24     dc.setFileName(file_name = "../../../data/lutz/movie/temp.%d.xml" %i)
25     # Save the rendered object from each file into an image.
26     #s.saveImage("%02d.jpg" % i)
27     # Display the rendered object from each file one after another.
28     s.animate()

  ViewVC Help
Powered by ViewVC 1.1.26