/[escript]/trunk/pyvisi/py_src/ellipsoid.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/ellipsoid.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1079 by jongui, Tue Apr 10 04:27:31 2007 UTC revision 1093 by jongui, Sun Apr 15 23:58:53 2007 UTC
# Line 303  class EllipsoidOnPlaneClip(DataSetMapper Line 303  class EllipsoidOnPlaneClip(DataSetMapper
303    
304          if(cell_to_point == True): # Converts cell data to point data.          if(cell_to_point == True): # Converts cell data to point data.
305              c2p = CellDataToPointData(data_collector._getOutput())              c2p = CellDataToPointData(data_collector._getOutput())
306              Clipper.__init__(self, c2p._getOutput(),              MaskPoints.__init__(self, c2p._getOutput())
                     Plane._getPlane(self))    
             Clipper._setClipFunction(self)  
307          elif(cell_to_point == False): # No conversion happens.            elif(cell_to_point == False): # No conversion happens.  
308              Clipper.__init__(self, data_collector._getOutput(),              MaskPoints.__init__(self, data_collector._getOutput())
                     Plane._getPlane(self))    
             Clipper._setClipFunction(self)  
309    
310          MaskPoints.__init__(self, Clipper._getOutput(self))          # NOTE: TensorGlyph must come before Clipper. Otherwise clipping
311            # may not work correctly.
312          Sphere.__init__(self)          Sphere.__init__(self)
313          TensorGlyph.__init__(self, MaskPoints._getOutput(self),          TensorGlyph.__init__(self, MaskPoints._getOutput(self),
314                  Sphere._getOutput(self))                  Sphere._getOutput(self))
   
315          Normals.__init__(self, TensorGlyph._getOutput(self))          Normals.__init__(self, TensorGlyph._getOutput(self))
316          DataSetMapper.__init__(self, Normals._getOutput(self),  
317            # NOTE: Clipper must come after TensorGlyph. Otherwise clipping
318            # may not work correctly.
319            Clipper.__init__(self, Normals._getOutput(self),
320                    Plane._getPlane(self))  
321            Clipper._setClipFunction(self)
322    
323            DataSetMapper.__init__(self, Clipper._getOutput(self),
324              lookup_table._getLookupTable())              lookup_table._getLookupTable())
325          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())
326    

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

  ViewVC Help
Powered by ViewVC 1.1.26