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

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

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

revision 1037 by jongui, Fri Mar 16 05:00:32 2007 UTC revision 1051 by jongui, Wed Mar 21 21:56:54 2007 UTC
# Line 206  class StructuredPoints: Line 206  class StructuredPoints:
206    
207          return self.__vtk_structured_points          return self.__vtk_structured_points
208    
209    
210    ##############################################################################
211    
212    
213    class MaskPoints:
214    
215        def __init__(self, object):
216            self.__object = object
217            self.__vtk_mask_points = vtk.vtkMaskPoints()
218    
219            self.__setupMaskPoints()
220    
221        def __setupMaskPoints(self):
222            self.__setInput()
223    
224        def __setInput(self):
225            self.__vtk_mask_points.SetInput(self.__object)
226    
227        def setRatio(self, ratio):
228            self.__vtk_mask_points.SetOnRatio(ratio)
229    
230        def randomOn(self):
231            self.__vtk_mask_points.RandomModeOn()
232    
233        def randomOff(self):
234            self.__vtk_mask_points.RandomModeOff()
235        
236        def _getOutput(self):
237            return self.__vtk_mask_points.GetOutput()
238    
239    

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

  ViewVC Help
Powered by ViewVC 1.1.26