/[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 977 by jongui, Thu Feb 15 04:36:38 2007 UTC revision 978 by jongui, Fri Feb 16 07:02:18 2007 UTC
# Line 118  class Velocity(DataSetMapper, Actor3D, A Line 118  class Velocity(DataSetMapper, Actor3D, A
118          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
119              print "scalar.."              print "scalar.."
120              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
121              Glyph3D._setRange(self, data_collector._getScalarRange())              Glyph3D._setRange(self, data_collector._getVectorRange())
122              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
123                      data_collector._getScalarRange())                      data_collector._getScalarRange())
124              print data_collector._getScalarRange()              print data_collector._getScalarRange()
# Line 226  class VelocityOnPlaneCut(DataSetMapper, Line 226  class VelocityOnPlaneCut(DataSetMapper,
226          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
227              Arrow2D.__init__(self)              Arrow2D.__init__(self)
228              Glyph3D.__init__(self, Cutter._getOutput(self),              Glyph3D.__init__(self, Cutter._getOutput(self),
229                      Arrow2D._getOutput(self), data_collector._getScalarRange())                      Arrow2D._getOutput(self))
230          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
231              Arrow3D.__init__(self)              Arrow3D.__init__(self)
232              Glyph3D.__init__(self, Cutter._getOutput(self),              Glyph3D.__init__(self, Cutter._getOutput(self),
233                      Arrow3D._getOutput(self), data_collector._getScalarRange())                      Arrow3D._getOutput(self))
234    
235          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
236                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
# Line 345  class VelocityOnPlaneClip(DataSetMapper, Line 345  class VelocityOnPlaneClip(DataSetMapper,
345              Arrow2D.__init__(self)              Arrow2D.__init__(self)
346              #Glyph3D.__init__(self, data_collector._getOutput(),              #Glyph3D.__init__(self, data_collector._getOutput(),
347              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
348                      Arrow2D._getOutput(self), data_collector._getScalarRange())                      Arrow2D._getOutput(self))
349          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
350              Arrow3D.__init__(self)              Arrow3D.__init__(self)
351              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
352                      Arrow3D._getOutput(self), data_collector._getScalarRange())                      Arrow3D._getOutput(self))
353                    
354          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will
355          # be incorrect.          # be incorrect.

Legend:
Removed from v.977  
changed lines
  Added in v.978

  ViewVC Help
Powered by ViewVC 1.1.26