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

Annotation of /trunk/pyvisi/drivers/drivermap.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: 609 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, RedToBlue
6    
7     s = Scene(renderer = "vtk_online", x_size = 1000, y_size = 800)
8     dc = DataCollector(scene = s, outline = True)
9     dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
10    
11     cam = Camera(scene = s, data_collector = dc)
12     cam.elevation(-50)
13     # Create a surface map.
14     map = Map(scene = s, data_collector = dc)
15     # Change the LUT to blue-to-red. Default LUT is red-to-blue.
16     #br = BlueToRed()
17     #map = Map(scene = s, data_collector = dc, lut = br)
18    
19     s.render()

  ViewVC Help
Powered by ViewVC 1.1.26