/[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 834 by jongui, Wed Aug 30 07:52:35 2006 UTC revision 835 by jongui, Mon Sep 4 22:20:28 2006 UTC
# Line 1  Line 1 
1  """  """
2  class that shows scalar data by color on the domain surface  Class that shows a scalar field by a surface map.
   
 @var __author__: name of author  
 @var __license__: licence agreement  
 @var __copyright__: copyrights  
 @var __url__: url entry point on documentation  
 @var __version__: version  
 @var __date__: date of the version  
3  """  """
 __copyright__="""  Copyright (c) 2006 by ACcESS MNRF  
                     http://www.access.edu.au  
                 Primary Business: Queensland, Australia"""  
 __license__="""Licensed under the Open Software License version 3.0  
              http://www.opensource.org/licenses/osl-3.0.php"""  
 __author__="Paul Cochrane, L. Gross"  
 __url__="http://www.iservo.edu.au/esys"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
4    
5  import vtk  import vtk
6  from common import *  from common import *
7    
8  class Map(Common):  class Map(Common):
9        """
10        @author: John Ngui
11        @author: Lutz Gross
12        """
13    
14      def __init__(self, open_scene, data_collector):      def __init__(self, open_scene, data_collector):
15          Common.__init__(self, open_scene, data_collector)          """
16          #self.open_scene = open_scene          @type open_scene: L{OpenScene <openscene.OpenScene>} object
17          #self.data_collector = data_collector          @param open_scene: Scene in which components are to be added to
18          #self.vtk_xml_mapper = None          @type data_collector: L{DataCollector <datacollector.DataCollector>}
19          #self.vtk_xml_actor = None              object
20            @param data_collector: Source of data for visualization
21            """
22    
23          #self.setMapper()          Common.__init__(self, open_scene, data_collector)
         #self.setActor()  
24          Common.setMapper(self, "self.data_collector.getReader().GetOutput()")          Common.setMapper(self, "self.data_collector.getReader().GetOutput()")
25          Common.setActor(self)          Common.setActor(self)
26          Common.addActor(self)          Common.addActor(self)
27    
   
           
   
     # set up the mapper and data  
     #def setMapper(self):  
           
         #self.vtk_xml_mapper = vtk.vtkDataSetMapper()  
         #self.vtk_xml_mapper.SetInput(  
         #   self.data_collector.getReader().GetOutput())  
   
     # set up the actor and add the actor to the scene  
     #def setActor(self):  
         #self.vtk_xml_actor = vtk.vtkActor()  
         #self.vtk_xml_actor.SetMapper(self.vtk_xml_mapper)  
         #self.vtk_xml_actor.GetProperty().SetOpacity(0.2)  
   
         #self.open_scene.getRenderer().AddActor(self.vtk_xml_actor)  
   
       
   
28  """  """
29  class MapOnPlane():  class MapOnPlane():
30  shows scalar data by color on a given plane  shows scalar data by color on a given plane

Legend:
Removed from v.834  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.26