/[escript]/trunk/pyvisi/py_src/map.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/map.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 835 - (show annotations)
Mon Sep 4 22:20:28 2006 UTC (14 years, 2 months ago) by jongui
File MIME type: text/x-python
File size: 745 byte(s)
Added more docstrings and updated the way positions, focal point and view angle are specified.


1 """
2 Class that shows a scalar field by a surface map.
3 """
4
5 import vtk
6 from common import *
7
8 class Map(Common):
9 """
10 @author: John Ngui
11 @author: Lutz Gross
12 """
13
14 def __init__(self, open_scene, data_collector):
15 """
16 @type open_scene: L{OpenScene <openscene.OpenScene>} object
17 @param open_scene: Scene in which components are to be added to
18 @type data_collector: L{DataCollector <datacollector.DataCollector>}
19 object
20 @param data_collector: Source of data for visualization
21 """
22
23 Common.__init__(self, open_scene, data_collector)
24 Common.setMapper(self, "self.data_collector.getReader().GetOutput()")
25 Common.setActor(self)
26 Common.addActor(self)
27
28 """
29 class MapOnPlane():
30 shows scalar data by color on a given plane
31 """
32 pass

  ViewVC Help
Powered by ViewVC 1.1.26