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

Diff of /trunk/pyvisi/py_src/streamline.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 22  class StreamLine(DataSetMapper, Actor3D, Line 22  class StreamLine(DataSetMapper, Actor3D,
22            
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 vector field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
26      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
27      # be used.          lut = Lut.COLOR, color_mode = ColorMode.VECTOR, outline = True):
     def __init__(self, scene, data_collector, scalar = None, vector = None,  
         viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR,  
         color_mode = ColorMode.VECTOR, outline = True):  
28          """          """
29          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
30          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
31          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
32                  object                  object
33          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type vector: String  
         @param vector: Vector field to load from the source file  
         @type scalar: String  
         @param scalar: Scalar field to load from the source file  
34          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
35          @param viewport: Viewport in which the object is to be rendered on          @param viewport: Viewport in which the object is to be rendered on
36          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 72  class StreamLine(DataSetMapper, Actor3D, Line 65  class StreamLine(DataSetMapper, Actor3D,
65    
66          # ----- Streamline -----          # ----- Streamline -----
67    
         #if(vector != None):  
         #   data_collector._setActiveVector(vector)  
         #elif(scalar != None):  
         #   data_collector._setActiveScalar(scalar)  
   
68          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
69          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
70          # 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