/[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 945 by jongui, Tue Jan 30 22:34:27 2007 UTC revision 946 by jongui, Wed Jan 31 03:08:04 2007 UTC
# Line 27  class PointSource: Line 27  class PointSource:
27          """          """
28    
29          # Default number of points to generate is 10.          # Default number of points to generate is 10.
30          self.setNumberOfPoints(10)          self.setPointSourceNumberOfPoints(10)
31          # Default center is of the sphere is the center of the data object.          # Default center is of the sphere is the center of the data object.
32          center = self.__object.GetCenter()          center = self.__object.GetCenter()
33          self.setCenter(GlobalPosition(center[0], center[1], center[2]))          self.setPointSourceCenter(GlobalPosition(center[0], center[1], center[2]))
34          # Default radius of the sphere is 0.1.          # Default radius of the sphere is 0.5.
35          self.setPointSourceRadius(0.1)          self.setPointSourceRadius(0.1)
36          self.__vtk_point_source.Update()          self.__vtk_point_source.Update()
37    
# Line 45  class PointSource: Line 45  class PointSource:
45    
46          self.__vtk_point_source.SetRadius(radius)          self.__vtk_point_source.SetRadius(radius)
47    
48      def setCenter(self, position):      def setPointSourceCenter(self, position):
49          """          """
50          Set the center of the sphere.          Set the center of the sphere.
51                    
# Line 55  class PointSource: Line 55  class PointSource:
55    
56          self.__vtk_point_source.SetCenter(position._getGlobalPosition())          self.__vtk_point_source.SetCenter(position._getGlobalPosition())
57    
58      def setNumberOfPoints(self, points):      def setPointSourceNumberOfPoints(self, points):
59          """          """
60          Set the number of points to generate within the sphere.          Set the number of points to generate within the sphere. The larger the
61            number of points, the more streamlines are generated.
62    
63          @type points: Number          @type points: Number
64          @param points: Number of points to generate          @param points: Number of points to generate

Legend:
Removed from v.945  
changed lines
  Added in v.946

  ViewVC Help
Powered by ViewVC 1.1.26