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

Diff of /trunk/pyvisi/py_src/examples/streamline.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 993 by jongui, Fri Feb 23 03:35:33 2007 UTC revision 994 by jongui, Fri Feb 23 07:00:54 2007 UTC
# Line 7  s = Scene(renderer = Renderer.ONLINE, nu Line 7  s = Scene(renderer = Renderer.ONLINE, nu
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8  dc1.setFileName(file_name =  dc1.setFileName(file_name =
9          "/home/jongui/results.xml")          "/home/jongui/results.xml")
10    dc1.setActiveScalar("scalar2")
11    
12  # Create one streamline instance for the first viewport.  # Create one streamline instance for the first viewport.
13  sl1 = StreamLine(scene = s, data_collector = dc1,  sl1 = StreamLine(scene = s, data_collector = dc1,
14          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True,          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True,
15          color_mode = ColorMode.SCALAR, scalar = "scalar2")          color_mode = ColorMode.SCALAR)
16  sl1.setTubeRadius(radius = 0.01)  sl1.setTubeRadius(radius = 0.01)
17    
18  cam1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  cam1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
# Line 30  cam2.elevation(angle = -40) Line 31  cam2.elevation(angle = -40)
31  # Create one streamline instance for the third viewport.  # Create one streamline instance for the third viewport.
32  sl3 = StreamLine(scene = s, data_collector = dc1,  sl3 = StreamLine(scene = s, data_collector = dc1,
33          viewport = Viewport.NORTH_EAST, lut = Lut.COLOR, outline = True,          viewport = Viewport.NORTH_EAST, lut = Lut.COLOR, outline = True,
34          color_mode = ColorMode.SCALAR, scalar = "scalar1")          color_mode = ColorMode.SCALAR)
35  sl3.setPointSourceCenter(GlobalPosition(x_coor = 0.2, y_coor = 0.2,  sl3.setPointSourceCenter(GlobalPosition(x_coor = 0.2, y_coor = 0.2,
36          z_coor = 0.2))          z_coor = 0.2))
37    

Legend:
Removed from v.993  
changed lines
  Added in v.994

  ViewVC Help
Powered by ViewVC 1.1.26