/[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 859 by jongui, Fri Sep 15 07:11:55 2006 UTC revision 860 by jongui, Thu Sep 28 08:17:29 2006 UTC
# Line 20  class Map(Common): Line 20  class Map(Common):
20          @param data_collector: Source of data for visualization          @param data_collector: Source of data for visualization
21          @type lut: L{BlueToRed <colormap.BlueToRed>} object or          @type lut: L{BlueToRed <colormap.BlueToRed>} object or
22              L{RedToBlue <colormap.RedToBlue>} object              L{RedToBlue <colormap.RedToBlue>} object
23          @param lut: Color lookup tabl to be used by the mapper          @param lut: Lookup table to be used by the mapper
24          """          """
25    
26          Common.__init__(self, scene, data_collector)          Common.__init__(self, scene, data_collector)
# Line 37  class MapOnPlane(Plane): Line 37  class MapOnPlane(Plane):
37      Class that shows a scalar field on a given plane.      Class that shows a scalar field on a given plane.
38      """      """
39    
40      def __init__(self, scene, data_collector, lut = None):      def __init__(self, scene, data_collector, transform, lut = None):
41          """          """
42          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
43          @param scene: Scene in which components are to be added to          @param scene: Scene in which components are to be added to
44          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
45              object              object
46          @param data_collector: Source of data for visualzation          @param data_collector: Source of data for visualization
47            @type transform: L{Transform <geo.Transform>} object
48            @param transform: Orientation of the plane
49            @type lut: L{BlueToRed <colormap.BlueToRed>} or
50                L{RedToBlue <colormap.RedToBlue>} object
51            @param lut: Lookup table to be used by the mapper
52          """          """
53    
54            # "Cut" is used to distinguish cutting from clipping.
55          Plane.__init__(self, scene, data_collector,          Plane.__init__(self, scene, data_collector,
56              data_collector.getReader().GetOutput(), lut)              data_collector.getReader().GetOutput(), transform, lut, "Cut")
57    
58    from plane import Plane
59    
60    class MapOnClip(Plane):
61        """
62        Class that shows a scalar field on a given clip.
63        """
64    
65        def __init__(self, scene, data_collector, transform, lut = None):
66            """
67            @type scene: L{Scene <scene.Scene>} object
68            @param scene: Scene in which components are to be added to
69            @type data_collector: L{DataCollector <datacollector.DataCollector>}
70                object
71            @param data_collector: Source of data for visualization
72            @type transform: L{Transform <geo.Transform>} object
73            @param transform: Orientation of the plane
74            @type lut: L{BlueToRed <colormap.BlueToRed>} or
75                L{RedToBlue <colormap.RedToBlue>} object
76            @param lut: Lookup table to be used by the mapper
77            """
78    
79            # "Clip is used to distinguish clipping from cutting.
80            Plane.__init__(self, scene, data_collector,
81                data_collector.getReader().GetOutput(), transform, lut, "Clip")
82    

Legend:
Removed from v.859  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.26