/[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 1051 by jongui, Wed Mar 21 21:56:54 2007 UTC revision 1053 by jongui, Thu Mar 22 01:14:43 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              MaskPoints.__init__(self, c2p._getOutput())              Cutter.__init__(self, c2p._getOutput(),
214                        Plane._getPlane(self))  
215          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
216              MaskPoints.__init__(self, data_collector._getOutput())              Cutter.__init__(self, data_collector._getOutput(),
217                                Plane._getPlane(self))  
218    
219            MaskPoints.__init__(self, Cutter._getOutput(self))
220    
221          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
222              Arrow2D.__init__(self)              Arrow2D.__init__(self)
             #Glyph3D.__init__(self, Cutter._getOutput(self),  
223              Glyph3D.__init__(self, MaskPoints._getOutput(self),              Glyph3D.__init__(self, MaskPoints._getOutput(self),
224                      Arrow2D._getOutput(self))                      Arrow2D._getOutput(self))
225          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
# Line 225  class VelocityOnPlaneCut(DataSetMapper, Line 227  class VelocityOnPlaneCut(DataSetMapper,
227              Glyph3D.__init__(self, MaskPoints._getOutput(self),              Glyph3D.__init__(self, MaskPoints._getOutput(self),
228                      Arrow3D._getOutput(self))                      Arrow3D._getOutput(self))
229    
230          Cutter.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
                 Plane._getPlane(self))    
   
         DataSetMapper.__init__(self, Cutter._getOutput(self),  
231                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
232    
233          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.

Legend:
Removed from v.1051  
changed lines
  Added in v.1053

  ViewVC Help
Powered by ViewVC 1.1.26