/[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 1092 by jongui, Thu Apr 5 06:18:47 2007 UTC revision 1093 by jongui, Sun Apr 15 23:58:53 2007 UTC
# Line 355  class VelocityOnPlaneClip(DataSetMapper, Line 355  class VelocityOnPlaneClip(DataSetMapper,
355    
356          if(cell_to_point == True): # Converts cell data to point data.          if(cell_to_point == True): # Converts cell data to point data.
357              c2p = CellDataToPointData(data_collector._getOutput())              c2p = CellDataToPointData(data_collector._getOutput())
358              Clipper.__init__(self, c2p._getOutput(),              MaskPoints.__init__(self, c2p._getOutput())
                     Plane._getPlane(self))    
             Clipper._setClipFunction(self)  
359          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
360              Clipper.__init__(self, data_collector._getOutput(),              MaskPoints.__init__(self, data_collector._getOutput())
                     Plane._getPlane(self))    
             Clipper._setClipFunction(self)  
361    
362          MaskPoints.__init__(self, Clipper._getOutput(self))          # NOTE: Glyph3D must come before Clipper. Otherwise clipping may not
363            # work correctly.
         # NOTE: Glyph3D must come before Clipper. Otherwise, the output will  
         # be incorrect.  
364          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
365              Arrow2D.__init__(self)              Arrow2D.__init__(self)
366              Glyph3D.__init__(self, MaskPoints._getOutput(self),              Glyph3D.__init__(self, MaskPoints._getOutput(self),
# Line 376  class VelocityOnPlaneClip(DataSetMapper, Line 370  class VelocityOnPlaneClip(DataSetMapper,
370              Glyph3D.__init__(self, MaskPoints._getOutput(self),              Glyph3D.__init__(self, MaskPoints._getOutput(self),
371                      Arrow3D._getOutput(self))                      Arrow3D._getOutput(self))
372                    
373          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          Clipper.__init__(self, Glyph3D._getOutput(self),
374                    Plane._getPlane(self))  
375            Clipper._setClipFunction(self)
376    
377            # NOTE: Clipper must come after Glyph. Otherwise clipping
378            # may not work correctly.
379            DataSetMapper.__init__(self, Clipper._getOutput(self),
380                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
381    
382          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.

Legend:
Removed from v.1092  
changed lines
  Added in v.1093

  ViewVC Help
Powered by ViewVC 1.1.26