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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Fri Mar 16 05:15:37 2007 UTC (12 years, 4 months ago) by jongui
File MIME type: text/x-python
File size: 551 byte(s)
Added more examples.
1 from esys.pyvisi import Scene, DataCollector, MapOnScalarClip, Camera
2 from esys.pyvisi.constant import *
3
4 s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1152,
5 y_size = 864)
6
7 dc1 = DataCollector(source = Source.XML)
8 dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")
9
10 # Create a map on scalar clip instance.
11 mosc1_1 = MapOnScalarClip(scene = s, data_collector = dc1, lut = Lut.GREY_SCALE)
12
13 c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
14 c1.isometricView()
15
16 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26