/[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 995 by jongui, Fri Feb 23 07:00:54 2007 UTC revision 996 by jongui, Mon Feb 26 03:43:13 2007 UTC
# Line 18  class Map(DataSetMapper, Actor3D): Line 18  class Map(DataSetMapper, Actor3D):
18    
19      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
20      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
21      # If no scalar field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
22      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
23      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, scalar = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR,  
             outline = True):  
24          """          """
25          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
26          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
27          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
28                  object                  object
29          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type scalar: String  
         @param scalar: Scalar field to load from the source file  
30          @type viewport: L{Viewport <constant.Viewport>} constant            @type viewport: L{Viewport <constant.Viewport>} constant  
31          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
32          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 65  class Map(DataSetMapper, Actor3D): Line 60  class Map(DataSetMapper, Actor3D):
60    
61          # ----- Map -----          # ----- Map -----
62    
         #if(scalar != None): # True only if a scalar field was specified.  
         #   data_collector._setActiveScalar(scalar)  
   
63          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
64          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
65          # will take place.          # will take place.
# Line 103  class MapOnPlaneCut(DataSetMapper, Actor Line 95  class MapOnPlaneCut(DataSetMapper, Actor
95            
96      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
97      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
98      # If no scalar field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
99      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
100      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, scalar = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
   
101          """          """
102          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
103          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
104          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
105                  object                  object
106          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type scalar: String  
         @param scalar: Scalar field to load from the source file  
107          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
108          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
109          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 150  class MapOnPlaneCut(DataSetMapper, Actor Line 137  class MapOnPlaneCut(DataSetMapper, Actor
137    
138          # ----- Map on a plane -----          # ----- Map on a plane -----
139    
         #if(scalar != None):  
         #   data_collector._setActiveScalar(scalar)  
   
140          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
141          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
142          # will take place.          # will take place.
# Line 191  class MapOnPlaneClip(DataSetMapper, Acto Line 175  class MapOnPlaneClip(DataSetMapper, Acto
175            
176      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
177      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
178      # If no scalar field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
179      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
180      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, scalar = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
   
181          """          """
182          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
183          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
184          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
185                  object                  object
186          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type scalar: String  
         @param scalar: Scalar field to load from the source file  
187          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
188          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
189          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 238  class MapOnPlaneClip(DataSetMapper, Acto Line 217  class MapOnPlaneClip(DataSetMapper, Acto
217    
218          # ----- Map on a clipped plane -----          # ----- Map on a clipped plane -----
219    
         #if(scalar != None):  
         #   data_collector._setActiveScalar(scalar)  
   
220          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
221          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
222          # will take place.          # will take place.
# Line 278  class MapOnScalarClip(DataSetMapper, Act Line 254  class MapOnScalarClip(DataSetMapper, Act
254            
255      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
256      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
257      # If no scalar field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
     # be loaded automatically. If no lut is specified, the color scheme will  
     # be used.  
   
     def __init__(self, scene, data_collector, scalar = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
258    
259        def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
260                lut = Lut.COLOR, outline = True):
261          """          """
262          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
263          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
264          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
265                  object                  object
266          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type scalar: String  
         @param scalar: Scalar field to load from the source file  
267          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
268          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
269          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 326  class MapOnScalarClip(DataSetMapper, Act Line 297  class MapOnScalarClip(DataSetMapper, Act
297    
298          # ----- Map clipped using a scalar value -----          # ----- Map clipped using a scalar value -----
299    
         #if(scalar != None):  
         #   data_collector._setActiveScalar(scalar)  
   
300          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
301          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
302          # will take place.          # will take place.

Legend:
Removed from v.995  
changed lines
  Added in v.996

  ViewVC Help
Powered by ViewVC 1.1.26