/[escript]/trunk/pyvisi/py_src/examples/seriesofcarpetonline.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/examples/seriesofcarpetonline.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1037 - (show annotations)
Fri Mar 16 05:00:32 2007 UTC (14 years, 1 month ago) by jongui
File MIME type: text/x-python
File size: 777 byte(s)
Added the updated files.
1 from esys.pyvisi import Scene, DataCollector, Carpet, Camera
2 from esys.pyvisi.constant import *
3 import time
4
5 s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1152,
6 y_size = 864)
7
8 dc1 = DataCollector(source = Source.XML)
9 dc1.setFileName(file_name =
10 "/home/jongui/data/laurent/subduction/source/function.0001.vtk")
11
12 cpt = Carpet(scene = s, data_collector = dc1, lut = Lut.COLOR,
13 warp_mode = WarpMode.SCALAR, viewport = Viewport.SOUTH_WEST)
14 cpt.setPlaneToXY(500000)
15 cpt.setScaleFactor(0.2)
16
17 c = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
18 c.isometricView()
19
20 for i in range(1, 100):
21 dc1.setFileName(file_name =
22 "/home/jongui/data/laurent/subduction/source/function.%04d.vtk" % i)
23
24 s.animate()

  ViewVC Help
Powered by ViewVC 1.1.26