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

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

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

revision 821 by gross, Fri Jul 28 10:37:16 2006 UTC revision 822 by jongui, Tue Aug 29 01:39:27 2006 UTC
# Line 18  __url__="http://www.iservo.edu.au/esys" Line 18  __url__="http://www.iservo.edu.au/esys"
18  __version__="$Revision:$"  __version__="$Revision:$"
19  __date__="$Date:$"  __date__="$Date:$"
20    
21  from common import Component  import vtk
22    
23  class Map(Component):  class Map:
     """  
     shows scalar data by color on the domain surface  
     """  
     pass  
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  class MapOnPlane(Component):          self.setMapper()
32      """          self.setActor()
33      shows scalar data by color on a given plane  
34      """      def setMapper(self):
35      pass          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

Legend:
Removed from v.821  
changed lines
  Added in v.822

  ViewVC Help
Powered by ViewVC 1.1.26