/[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 885 by jongui, Wed Oct 25 03:56:34 2006 UTC revision 886 by jongui, Thu Nov 2 01:34:58 2006 UTC
# Line 26  class Map(Common): Line 26  class Map(Common):
26          Common.__init__(self, scene, data_collector)          Common.__init__(self, scene, data_collector)
27          Common.setMapperInput(self, self.data_collector.getReader().GetOutput(),          Common.setMapperInput(self, self.data_collector.getReader().GetOutput(),
28              lut)              lut)
29    
30            #print "in Map class"
31            #bound = self.data_collector.getReader().GetOutput().GetBounds()
32            #print bound
33            #print bound[0]
34            #print bound[1]
35            #print bound[2]
36            #print bound[3]
37            #print bound[4]
38            #print bound[5]
39    
40          Common.setActorInput(self)          Common.setActorInput(self)
41          Common.addActor(self)          Common.addActor(self)
42    
# Line 76  class MapOnClip(Plane): Line 87  class MapOnClip(Plane):
87          @param lut: Lookup table to be used by the mapper          @param lut: Lookup table to be used by the mapper
88          """          """
89    
90          # "Clip is used to distinguish clipping from cutting.          # "Clip" is used to distinguish clipping from cutting.
91          Plane.__init__(self, scene, data_collector,          Plane.__init__(self, scene, data_collector,
92              data_collector.getReader().GetOutput(), transform, lut, "Clip")              data_collector.getReader().GetOutput(), transform, lut, "Clip")
93    
94    from plane import Plane
95    
96    class MapOnScalarClip(Plane):
97        
98        def __init__(self, scene, data_collector, lut = None):
99            """
100            @type scene: L{Scene <scene.Scene>} object
101            @param scene: Scene in which components are to be added to
102            @type data_collector: L{DataCollector <datacollector.DataCollector>}
103                object
104            @param data_collector: Source of data for visualization
105            @type lut: L{BlueToRed <colormap.BlueToRed>} or
106                L{RedToBlue <colormap.RedToBlue>} object
107            @param lut: Lookup table to be used by the mapper
108            """
109    
110            # "ScalarClip" is used to distinguish clipping from cutting.
111            Plane.__init__(self, scene, data_collector,
112                data_collector.getReader().GetOutput(), None, lut,
113                "ScalarClip")

Legend:
Removed from v.885  
changed lines
  Added in v.886

  ViewVC Help
Powered by ViewVC 1.1.26