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

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

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

revision 943 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 949 by jongui, Fri Feb 2 05:33:05 2007 UTC
# Line 6  import vtk Line 6  import vtk
6    
7  class StreamLineModule:  class StreamLineModule:
8      """      """
9      Class that defines streamline.      Class that defines streamlines.
10      """      """
11    
12      def __init__(self, object, source):      def __init__(self, object, source):
# Line 32  class StreamLineModule: Line 32  class StreamLineModule:
32    
33          self.__setInput()          self.__setInput()
34          self.__setSource()          self.__setSource()
35          # Default maximum propagation time is 50.          # Default maximum propagation time is 100.
36          self.setMaximumPropagationTime(50)          self.setMaximumPropagationTime(100)
37          # Default step length is 0.1          # Default step length is 0.1
38          self.setStepLength(0.1)          self.setStepLength(0.1)
39          # Default integration step length is 0.1          # Default integration step length is 0.1
# Line 71  class StreamLineModule: Line 71  class StreamLineModule:
71      def setStepLength(self, length):      def setStepLength(self, length):
72          """          """
73          Set the length of the line segment expressed in elapsed time. A smaller          Set the length of the line segment expressed in elapsed time. A smaller
74          value results in a smoother streamline (but is more expensive).          value results in a smoother streamline (but is more expensive). Setting
75            the step length usually goes hand-in-hand with setting the integration
76            step length. Otherwise, errors such as "... can't compute normals" may
77            arise. However, it does not usually apply the other way around.
78    
79          @type length: Number          @type length: Number
80          @param length: Length of the line segment expressed in elapsed time          @param length: Length of the line segment expressed in elapsed time
# Line 101  class StreamLineModule: Line 104  class StreamLineModule:
104    
105      def setIntegrator(self, integrator):      def setIntegrator(self, integrator):
106          """          """
107          Set the integrator to be used in the streamline calculation.          Set the integrator to be used in the streamline calculation.
108    
109          @type integrator: vtkInitialValueProblemSolver          @type integrator: vtkInitialValueProblemSolver
110          @param integrator: Integrator type. i.e. vtkRungeKutta2, vtkRungeKutta4          @param integrator: Integrator type. i.e. vtkRungeKutta2, vtkRungeKutta4
# Line 111  class StreamLineModule: Line 114  class StreamLineModule:
114    
115      def _getOutput(self):      def _getOutput(self):
116          """          """
117          Return the streamline.          Return the output of the streamline.
118    
119          @rtype: vtkPolyData          @rtype: vtkPolyData
120          @return Polygonal data          @return Polygonal data

Legend:
Removed from v.943  
changed lines
  Added in v.949

  ViewVC Help
Powered by ViewVC 1.1.26