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

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

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

revision 1073 by jongui, Fri Mar 16 05:15:37 2007 UTC revision 1074 by jongui, Fri Mar 30 02:44:42 2007 UTC
# Line 12  dc1.setFileName(file_name = Line 12  dc1.setFileName(file_name =
12  # Create a map instance for the first viewport.  # Create a map instance for the first viewport.
13  m1 = Map(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST,  m1 = Map(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST,
14          lut = Lut.COLOR, outline = True)          lut = Lut.COLOR, outline = True)
15  m1.setOpacity(0.1)  #m1.setOpacity(0.1)
16    
17  # Create one image reader instance (used in place of data collector).  # Create one image reader instance (used in place of data collector).
18  ir = ImageReader(ImageFormat.JPG)  ir = ImageReader(ImageFormat.JPG)
19  ir.setImageName(image_name =  ir.setImageName(image_name =
20          "/home/jongui/trunk/pyvisi/test/python/data_data/Flinders_eval.jpg")          "/home/jongui/trunk/pyvisi/test/python/data_meshes/flinders.jpg")
21            
22    
23  # Create one image instance.  # Create one image instance.
24  i = Image(scene = s, image_reader = ir)  i = Image(scene = s, image_reader = ir)
25  #i.setOpacity(opacity = 0.9)  i.setOpacity(opacity = 0.9)
26  i.translate(0,0,1.)  i.translate(0,0,-1.)
27  #i.rotateX(20)  #i.rotateX(20)
28  i.setPoint1(GlobalPosition(3,0,0))  i.setPoint1(GlobalPosition(3,0,0))
29  i.setPoint2(GlobalPosition(0,3,0))  i.setPoint2(GlobalPosition(0,3,0))

Legend:
Removed from v.1073  
changed lines
  Added in v.1074

  ViewVC Help
Powered by ViewVC 1.1.26