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

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

  ViewVC Help
Powered by ViewVC 1.1.26