/[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 1077 by jongui, Tue Apr 3 02:47:39 2007 UTC revision 1078 by jongui, Thu Apr 5 06:18:47 2007 UTC
# Line 20  class Velocity(DataSetMapper, Actor3D, A Line 20  class Velocity(DataSetMapper, Actor3D, A
20      """      """
21      Class that shows a vector field using arrows. The arrows can either be      Class that shows a vector field using arrows. The arrows can either be
22      colored or grey-scaled, depending on the lookup table used. If the arrows      colored or grey-scaled, depending on the lookup table used. If the arrows
23      are colored, there are two possible coloring modes: (1) using vector data      are colored, there are two possible coloring modes, either using vector data
24      or (2) using scalar data. Similarly, there are two possible types of      or scalar data. Similarly, there are two possible types of
25      arrows: (1) using two-dimensional or (2) using three-dimensional.      arrows, either using two-dimensional or three-dimensional.
26      """      """
27    
28      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
# 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())
             #MaskPoints.__init__(self, c2p._getOutput())  
358              Clipper.__init__(self, c2p._getOutput(),              Clipper.__init__(self, c2p._getOutput(),
359                      Plane._getPlane(self))                        Plane._getPlane(self))  
360              Clipper._setClipFunction(self)              Clipper._setClipFunction(self)
361          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
             #MaskPoints.__init__(self, data_collector._getOutput())  
362              Clipper.__init__(self, data_collector._getOutput(),              Clipper.__init__(self, data_collector._getOutput(),
363                      Plane._getPlane(self))                        Plane._getPlane(self))  
364              Clipper._setClipFunction(self)              Clipper._setClipFunction(self)
# Line 378  class VelocityOnPlaneClip(DataSetMapper, Line 376  class VelocityOnPlaneClip(DataSetMapper,
376              Glyph3D.__init__(self, MaskPoints._getOutput(self),              Glyph3D.__init__(self, MaskPoints._getOutput(self),
377                      Arrow3D._getOutput(self))                      Arrow3D._getOutput(self))
378                    
         # NOTE: Clipper must come after Glyph3D. Otherwise, the output will  
         # be incorrect.  
         #Clipper.__init__(self, Glyph3D._getOutput(self),  
         #       Plane._getPlane(self))    
         #Clipper._setClipFunction(self)  
   
         #DataSetMapper.__init__(self, Clipper._getOutput(self),  
379          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
380                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
381    

Legend:
Removed from v.1077  
changed lines
  Added in v.1078

  ViewVC Help
Powered by ViewVC 1.1.26