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

Contents of /trunk/pyvisi/drivers/drivercamera.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: 518 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from geo import Position
5
6 s = Scene(renderer = "vtk_online", x_size = 1000, y_size = 800)
7 dc = DataCollector(scene = s, outline = True)
8 dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
9
10 # Create a camera.
11 cam = Camera(scene = s, data_collector = dc)
12 # Change the camera's default settings.
13 cam.setPosition(Position(1.5, 1.5, 10))
14 cam.setFocalPoint(Position(1, 1, 0.2))
15 cam.azimuth(angle = 50)
16
17 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26