/[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 1055 by jongui, Thu Mar 22 01:14:43 2007 UTC revision 1056 by jongui, Thu Mar 22 06:52:08 2007 UTC
# Line 210  class VelocityOnPlaneCut(DataSetMapper, Line 210  class VelocityOnPlaneCut(DataSetMapper,
210    
211          if(cell_to_point == True): # Converts cell data to point data.          if(cell_to_point == True): # Converts cell data to point data.
212              c2p = CellDataToPointData(data_collector._getOutput())              c2p = CellDataToPointData(data_collector._getOutput())
213              Cutter.__init__(self, c2p._getOutput(),              Cutter.__init__(self, c2p._getOutput(), Plane._getPlane(self))  
                     Plane._getPlane(self))    
214          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
215              Cutter.__init__(self, data_collector._getOutput(),              Cutter.__init__(self, data_collector._getOutput(),
216                      Plane._getPlane(self))                        Plane._getPlane(self))  
# Line 333  class VelocityOnPlaneClip(DataSetMapper, Line 332  class VelocityOnPlaneClip(DataSetMapper,
332    
333          if(cell_to_point == True): # Converts cell data to point data.          if(cell_to_point == True): # Converts cell data to point data.
334              c2p = CellDataToPointData(data_collector._getOutput())              c2p = CellDataToPointData(data_collector._getOutput())
335              MaskPoints.__init__(self, c2p._getOutput())              #MaskPoints.__init__(self, c2p._getOutput())
336                Clipper.__init__(self, c2p._getOutput(),
337                        Plane._getPlane(self))  
338                Clipper._setClipFunction(self)
339          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
340              MaskPoints.__init__(self, data_collector._getOutput())              #MaskPoints.__init__(self, data_collector._getOutput())
341                Clipper.__init__(self, data_collector._getOutput(),
342                        Plane._getPlane(self))  
343                Clipper._setClipFunction(self)
344    
345            MaskPoints.__init__(self, Clipper._getOutput(self))
346    
347          # NOTE: Glyph3D must come before Clipper. Otherwise, the output will          # NOTE: Glyph3D must come before Clipper. Otherwise, the output will
348          # be incorrect.          # be incorrect.
# Line 350  class VelocityOnPlaneClip(DataSetMapper, Line 357  class VelocityOnPlaneClip(DataSetMapper,
357                    
358          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will
359          # be incorrect.          # be incorrect.
360          Clipper.__init__(self, Glyph3D._getOutput(self),          #Clipper.__init__(self, Glyph3D._getOutput(self),
361                  Plane._getPlane(self))            #       Plane._getPlane(self))  
362          Clipper._setClipFunction(self)          #Clipper._setClipFunction(self)
363    
364          DataSetMapper.__init__(self, Clipper._getOutput(self),          #DataSetMapper.__init__(self, Clipper._getOutput(self),
365            DataSetMapper.__init__(self, Glyph3D._getOutput(self),
366                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
367    
368          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.

Legend:
Removed from v.1055  
changed lines
  Added in v.1056

  ViewVC Help
Powered by ViewVC 1.1.26