/[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 822 - (show annotations)
Tue Aug 29 01:39:27 2006 UTC (14 years, 2 months ago) by jongui
File MIME type: text/x-python
File size: 1311 byte(s)
Added:
trunk/pyvisi/py_src/driver.py

Modified:
trunk/pyvisi/py_src/datacollector.py
trunk/pyvisi/py_src/map.py
trunk/pyvisi/py_src/scene.py


1 """
2 class that shows scalar data by color on the domain surface
3
4 @var __author__: name of author
5 @var __license__: licence agreement
6 @var __copyright__: copyrights
7 @var __url__: url entry point on documentation
8 @var __version__: version
9 @var __date__: date of the version
10 """
11 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
12 http://www.access.edu.au
13 Primary Business: Queensland, Australia"""
14 __license__="""Licensed under the Open Software License version 3.0
15 http://www.opensource.org/licenses/osl-3.0.php"""
16 __author__="Paul Cochrane, L. Gross"
17 __url__="http://www.iservo.edu.au/esys"
18 __version__="$Revision:$"
19 __date__="$Date:$"
20
21 import vtk
22
23 class Map:
24
25 def __init__(self, scene, data_collector):
26 self.scene = scene
27 self.data_collector = data_collector
28 self.vtk_xml_mapper = None
29 self.vtk_xml_actor = None
30
31 self.setMapper()
32 self.setActor()
33
34 def setMapper(self):
35 self.vtk_xml_mapper = vtk.vtkDataSetMapper()
36 self.vtk_xml_mapper.SetInput(
37 self.data_collector.getReader().GetOutput())
38
39 def setActor(self):
40 self.vtk_xml_actor = vtk.vtkActor()
41 self.vtk_xml_actor.SetMapper(self.vtk_xml_mapper)
42
43 self.scene.getRenderer().AddActor(self.vtk_xml_actor)
44
45
46
47 """
48 class MapOnPlane():
49 shows scalar data by color on a given plane
50 """
51 pass

  ViewVC Help
Powered by ViewVC 1.1.26