/[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 988 by jongui, Tue Feb 20 07:21:12 2007 UTC revision 992 by jongui, Fri Feb 23 03:35:33 2007 UTC
# Line 77  class Velocity(DataSetMapper, Actor3D, A Line 77  class Velocity(DataSetMapper, Actor3D, A
77    
78          # ----- Velocity -----          # ----- Velocity -----
79    
80            # NOTE: Two 'ifs' were used instead of an if-elif because an active
81            # scalar and an active vector attribute may be specified at the same
82            # time. One may be for the color mode and the other for the
83            # scaling mode.
84          if(vector != None):          if(vector != None):
85              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
86          elif(scalar != None):          if(scalar != None):
87              data_collector._setActiveScalar(scalar)              data_collector._setActiveScalar(scalar)
88    
89          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
# Line 194  class VelocityOnPlaneCut(DataSetMapper, Line 198  class VelocityOnPlaneCut(DataSetMapper,
198    
199          # ----- Velocity on a cut plane -----          # ----- Velocity on a cut plane -----
200    
201            # NOTE: Two 'ifs' were used instead of an if-elif because an active
202            # scalar and an active vector attribute may be specified at the same
203            # time. One may be for the color mode and the other for the
204            # scaling mode.
205          if(vector != None):          if(vector != None):
206              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
207          elif(scalar != None):          if(scalar != None):
208              data_collector._setActiveScalar(scalar)              data_collector._setActiveScalar(scalar)
209    
210          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
# Line 315  class VelocityOnPlaneClip(DataSetMapper, Line 323  class VelocityOnPlaneClip(DataSetMapper,
323    
324          # ----- Velocity on a clipped plane -----          # ----- Velocity on a clipped plane -----
325    
326            # NOTE: Two 'ifs' were used instead of an if-elif because an active
327            # scalar and an active vector attribute may be specified at the same
328            # time. One may be for the color mode and the other for the
329            # scaling mode.
330          if(vector != None):          if(vector != None):
331              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
332          elif(scalar != None):          if(scalar != None):
333              data_collector._setActiveScalar(scalar)              data_collector._setActiveScalar(scalar)
334    
335          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set

Legend:
Removed from v.988  
changed lines
  Added in v.992

  ViewVC Help
Powered by ViewVC 1.1.26