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

Contents of /trunk/pyvisi/drivers/drivermultiplecuts.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: 865 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from map import MapOnPlane
5 from geo import Transform
6 import time
7
8 s = Scene(renderer = "vtk_jpeg", x_size = 1000, y_size = 800)
9
10 dc = DataCollector(scene = s, outline = True)
11 dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
12
13 cam = Camera(scene = s, data_collector = dc)
14 cam.isometricView()
15
16 # Demonstrates a simple animation with two planes on a map.
17 tf = Transform()
18 tf.xzPlane()
19
20 tf2 = Transform()
21 tf2.yzPlane()
22
23 mop = MapOnPlane(scene = s, data_collector = dc, transform = tf)
24 mop2 = MapOnPlane(scene = s, data_collector = dc, transform = tf2)
25
26 for i in range(0,60):
27 tf.translate(0,0.05,0)
28 tf2.translate(0.05,0,0)
29 # This creates on the fly animation. No window interaction can occur.
30 s.animate()
31 #s.saveImage("%02d.jpg" % i)
32 time.sleep(0.05)
33

  ViewVC Help
Powered by ViewVC 1.1.26