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

Contents of /trunk/pyvisi/drivers/driverarrows.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations)
Tue Nov 7 23:42:31 2006 UTC (14 years, 3 months ago) by jongui
File MIME type: text/x-python
File size: 631 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from arrows import Arrows
5
6 s = Scene(renderer = "vtk_online", x_size = 1000, y_size = 800)
7 dc = DataCollector(scene = s, outline = True)
8 #dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
9 dc.setFileName(file_name = "../../../data/laurent/slab/slab.xml")
10
11 cam = Camera(scene = s, data_collector = dc)
12 cam.elevation(angle = -40)
13
14 # Create arrows.
15 a = Arrows(scene = s, data_collector = dc)
16 # Change the arrows' default scale_factor
17 #a.setScaleFactor(scale_factor = 0.25)
18 a.setScaleFactor(scale_factor = 4000)
19 s.render()
20

  ViewVC Help
Powered by ViewVC 1.1.26