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

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

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

revision 945 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 946 by jongui, Wed Jan 31 03:08:04 2007 UTC
# Line 28  class Tube: Line 28  class Tube:
28          # Default radius of the tube is 0.02.          # Default radius of the tube is 0.02.
29          self.setTubeRadius(0.02)          self.setTubeRadius(0.02)
30          # Default number of sides for the tube is 12.          # Default number of sides for the tube is 12.
31          self.setNumberOfSides(12)          self.setTubeNumberOfSides(12)
32          #self.setRadiusToVaryByVector()          #self.setRadiusToVaryByVector()
33          self.__vtk_tube.Update()          self.__vtk_tube.Update()
34    
# Line 49  class Tube: Line 49  class Tube:
49    
50          self.__vtk_tube.SetRadius(radius)          self.__vtk_tube.SetRadius(radius)
51    
52      def setNumberOfSides(self, sides):      def setTubeNumberOfSides(self, sides):
53          """          """
54          Set the number of sides for the tube. Minimum number of sides is 3.          Set the number of sides for the tube. Minimum number of sides is 3.
55                    
# Line 59  class Tube: Line 59  class Tube:
59    
60          self.__vtk_tube.SetNumberOfSides(sides)          self.__vtk_tube.SetNumberOfSides(sides)
61    
62      def setRadiusToVaryByVector(self):      def setTubeRadiusToVaryByVector(self):
63          """          """
64          Set the radius to vary by vector value.          Set the radius to vary by vector value.
65          """          """
66    
67          self.__vtk_tube.SetVaryRadiusToVaryRadiusByVector()          self.__vtk_tube.SetVaryRadiusToVaryRadiusByVector()
68            
69      def setRadiusToVaryByScalar(self):      def setTubeRadiusToVaryByScalar(self):
70          """          """
71          Set the radius to vary by scalar value.          Set the radius to vary by scalar value.
72          """          """

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

  ViewVC Help
Powered by ViewVC 1.1.26