/[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 792 by gross, Fri Jul 28 10:37:16 2006 UTC revision 827 by jongui, Wed Aug 30 00:08:02 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, open_scene, data_collector):
26            self.open_scene = open_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      """      # set up the mapper and data
35      pass      def setMapper(self):
36            self.vtk_xml_mapper = vtk.vtkDataSetMapper()
37            self.vtk_xml_mapper.SetInput(
38                self.data_collector.getReader().GetOutput())
39    
40        # set up the actor and add the actor to the scene
41        def setActor(self):
42            self.vtk_xml_actor = vtk.vtkActor()
43            self.vtk_xml_actor.SetMapper(self.vtk_xml_mapper)
44            self.vtk_xml_actor.GetProperty().SetOpacity(0.2)
45    
46            self.open_scene.getRenderer().AddActor(self.vtk_xml_actor)
47    
48        
49    
50    """
51    class MapOnPlane():
52    shows scalar data by color on a given plane
53    """
54    pass

Legend:
Removed from v.792  
changed lines
  Added in v.827

  ViewVC Help
Powered by ViewVC 1.1.26