/[escript]/trunk/pyvisi/py_src/carpet.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/carpet.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 23  class Carpet(DataSetMapper, Actor3D, War Line 23  class Carpet(DataSetMapper, Actor3D, War
23      # 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.
24      # 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.
25      # If no warp_mode is specified, the data will be deformated using scalar      # If no warp_mode is specified, the data will be deformated using scalar
26      # data. If no scalar field is specified, the first encountered in the      # data. If no lut is specified, the color scheme will be used.
27      # file will be loaded automatically. If no lut is specified, the      def __init__(self, scene, data_collector, warp_mode = WarpMode.SCALAR,
28      # color scheme will be used.              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, scalar = None, vector = None,  
             warp_mode = WarpMode.SCALAR, viewport = Viewport.SOUTH_WEST,  
             lut = Lut.COLOR, outline = True):  
29          """          """
30          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
31          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
32          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
33                  object                  object
34          @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  
35          @param warp_mode: L{WarpMode <constant.WarpMode>} constant          @param warp_mode: L{WarpMode <constant.WarpMode>} constant
36          @type warp_mode: Mode in which to deform the scalar data          @type warp_mode: Mode in which to deform the scalar data
37          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
# Line 72  class Carpet(DataSetMapper, Actor3D, War Line 67  class Carpet(DataSetMapper, Actor3D, War
67    
68          # ----- Carpet -----          # ----- Carpet -----
69    
         #if(scalar != None):  
         #   data_collector._setActiveScalar(scalar)  
                   
70          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
71          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
72          # 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