/[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 848 by jongui, Fri Sep 8 07:13:01 2006 UTC revision 849 by jongui, Fri Sep 15 07:11:55 2006 UTC
# Line 4  Line 4 
4  """  """
5    
6  import vtk  import vtk
7  from common import *  from common import Common
8    
9  class Map(Common):  class Map(Common):
10      """      """
# Line 24  class Map(Common): Line 24  class Map(Common):
24          """          """
25    
26          Common.__init__(self, scene, data_collector)          Common.__init__(self, scene, data_collector)
27          Common.setMapper(self, "self.data_collector.getReader().GetOutput()",          Common.setMapperInput(self, self.data_collector.getReader().GetOutput(),
28              lut)              lut)
29          Common.setActor(self)          Common.setActorInput(self)
30          Common.addActor(self)          Common.addActor(self)
31    
32    
33  from map import Map  from plane import Plane
 from geo import Plane  
34    
35  class MapOnPlane(Map, Plane):  class MapOnPlane(Plane):
36      """      """
37      Class that shows a scalar field on a given plane.      Class that shows a scalar field on a given plane.
38      """      """
# Line 47  class MapOnPlane(Map, Plane): Line 46  class MapOnPlane(Map, Plane):
46          @param data_collector: Source of data for visualzation          @param data_collector: Source of data for visualzation
47          """          """
48    
         Common.__init__(self, scene, data_collector)  
   
49          Plane.__init__(self, scene, data_collector,          Plane.__init__(self, scene, data_collector,
50              "self.data_collector.getReader().GetOutput()")              data_collector.getReader().GetOutput(), lut)
   
           
51    

Legend:
Removed from v.848  
changed lines
  Added in v.849

  ViewVC Help
Powered by ViewVC 1.1.26