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

Diff of /trunk/pyvisi/py_src/velocity.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 973 by jongui, Thu Feb 15 04:06:23 2007 UTC revision 974 by jongui, Thu Feb 15 04:36:38 2007 UTC
# Line 26  class Velocity(DataSetMapper, Actor3D, A Line 26  class Velocity(DataSetMapper, Actor3D, A
26      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
27      # be loaded automatically. If no lut is specified, the color scheme will      # be loaded automatically. If no lut is specified, the color scheme will
28      # be used.      # be used.
29      def __init__(self, scene, data_collector, vector = None,      def __init__(self, scene, data_collector, vector = None, scalar = None,
30              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
31              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
32    
# Line 38  class Velocity(DataSetMapper, Actor3D, A Line 38  class Velocity(DataSetMapper, Actor3D, A
38          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
39          @type vector: String          @type vector: String
40          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
41            @type scalar: String
42            @param scalar: Scalar field to load from the source file
43          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
44          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
45          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
# Line 77  class Velocity(DataSetMapper, Actor3D, A Line 79  class Velocity(DataSetMapper, Actor3D, A
79    
80          if(vector != None):          if(vector != None):
81              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
82            elif(scalar != None):
83                data_collector._setActiveScalar(scalar)
84    
85          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
86          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 144  class VelocityOnPlaneCut(DataSetMapper, Line 148  class VelocityOnPlaneCut(DataSetMapper,
148      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
149      # be loaded automatically.  If no lut is specified, the color scheme will      # be loaded automatically.  If no lut is specified, the color scheme will
150      # be used.      # be used.
151      def __init__(self, scene, data_collector, vector = None,      def __init__(self, scene, data_collector, vector = None, scalar = None,
152              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
153              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
154          """          """
# Line 155  class VelocityOnPlaneCut(DataSetMapper, Line 159  class VelocityOnPlaneCut(DataSetMapper,
159          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
160          @type vector: String          @type vector: String
161          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
162            @type scalar: String
163            @param scalar: Scalar field to load from the source file
164          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
165          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
166          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
# Line 194  class VelocityOnPlaneCut(DataSetMapper, Line 200  class VelocityOnPlaneCut(DataSetMapper,
200    
201          if(vector != None):          if(vector != None):
202              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
203            elif(scalar != None):
204                data_collector._setActiveScalar(scalar)
205    
206          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
207          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 259  class VelocityOnPlaneClip(DataSetMapper, Line 267  class VelocityOnPlaneClip(DataSetMapper,
267      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
268      # be loaded automatically.  If no lut is specified, the color scheme will      # be loaded automatically.  If no lut is specified, the color scheme will
269      # be used.      # be used.
270      def __init__(self, scene, data_collector, vector = None,      def __init__(self, scene, data_collector, vector = None, scalar = None,
271              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
272              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
273          """          """
# Line 270  class VelocityOnPlaneClip(DataSetMapper, Line 278  class VelocityOnPlaneClip(DataSetMapper,
278          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
279          @type vector: String          @type vector: String
280          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
281            @type scalar: String
282            @param scalar: Scalar field to load from the source file
283          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
284          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
285          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
# Line 309  class VelocityOnPlaneClip(DataSetMapper, Line 319  class VelocityOnPlaneClip(DataSetMapper,
319    
320          if(vector != None):          if(vector != None):
321              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
322            elif(scalar != None):
323                data_collector._setActiveScalar(scalar)
324    
325          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
326          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect

Legend:
Removed from v.973  
changed lines
  Added in v.974

  ViewVC Help
Powered by ViewVC 1.1.26