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

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

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

revision 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC
# Line 67  class Transform: Line 67  class Transform:
67          """          """
68    
69          self.__vtk_transform.RotateY(angle)          self.__vtk_transform.RotateY(angle)
                   
70    
71      def rotateZ(self, angle):      def rotateZ(self, angle):
72          """          """
# Line 134  class TransformFilter: Line 133  class TransformFilter:
133      Class that defines a transform poly data filter.      Class that defines a transform poly data filter.
134      """      """
135    
136      def __init__(self, plane_source, transform):      def __init__(self):
137          """          """
138          Initialise the transoform poly data filter.          Initialise the transoform poly data filter.
139            """
140    
141            self.__vtk_transform_filter = vtk.vtkTransformPolyDataFilter()
142    
143        def _setupTransformFilter(self, plane_source, transform):
144            """
145            Setup the transform filter.
146    
147          @type plane_source: vtkPolyData          @type plane_source: vtkPolyData
148          @param plane_source: Polygonal data          @param plane_source: Polygonal data
# Line 147  class TransformFilter: Line 153  class TransformFilter:
153          self.__plane_source = plane_source          self.__plane_source = plane_source
154          self.__transform = transform          self.__transform = transform
155    
156          self.__vtk_transform_filter = vtk.vtkTransformPolyDataFilter()          self.__setInput()
157            self.__setTransform()
         self._setInput()  
         self._setTransform()  
158    
159      def _setInput(self):      def __setInput(self):
160          """          """
161          Set the input for the transform poly data filter.          Set the input for the transform poly data filter.
162          """          """
163    
164          self.__vtk_transform_filter.SetInput(self.__plane_source)          self.__vtk_transform_filter.SetInput(self.__plane_source)
165    
166      def _setTransform(self):      def __setTransform(self):
167          """          """
168          Set the transformation of the plane source.          Set the transformation of the plane source.
169          """          """
170    
171          self.__vtk_transform_filter.SetTransform(self.__transform)          self.__vtk_transform_filter.SetTransform(self.__transform)
172    
173      def _getOutput(self):      def _getTransformFilterOutput(self):
174          """          """
175          Return the output of the transform poly data filter.          Return the output of the transform poly data filter.
176          """          """

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

  ViewVC Help
Powered by ViewVC 1.1.26