/[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 1158 by jongui, Tue May 22 04:24:01 2007 UTC revision 1161 by jongui, Wed May 23 04:17:52 2007 UTC
# Line 19  class Tube: Line 19  class Tube:
19      def _setupTube(self, object):      def _setupTube(self, object):
20          """          """
21          Setup the tube.          Setup the tube.
22    
23            @type object: vtkPolyData, etc
24            @param object: Input for the tube
25          """          """
26    
27          self.__setInput(object)          self.__object = object
28    
29            self.__setInput()
30          # Default radius of the tube is 0.02.          # Default radius of the tube is 0.02.
31          self.setTubeRadius(0.02)          self.setTubeRadius(0.02)
32          # Default number of sides for the tube is 12.          # Default number of sides for the tube is 12.
33          self.setTubeNumberOfSides(12)          self.setTubeNumberOfSides(12)
34          self.setTubeRadiusToVaryByVector()          self.setTubeRadiusToVaryByVector()
35    
36      def __setInput(self, object):      def __setInput(self):
37          """          """
38          Set the input for the tube.          Set the input for the tube.
   
         @type object: vtkPolyData, etc  
         @param object: Input for the tube  
39          """          """
40    
41          self.__vtk_tube.SetInput(object)          self.__vtk_tube.SetInput(self.__object)
42    
43      def setTubeRadius(self, radius):      def setTubeRadius(self, radius):
44          """          """

Legend:
Removed from v.1158  
changed lines
  Added in v.1161

  ViewVC Help
Powered by ViewVC 1.1.26