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

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

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

revision 946 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 947 by jongui, Wed Jan 31 07:17:43 2007 UTC
# Line 22  class Arrow2D: Line 22  class Arrow2D:
22          Setup the 2D arrow.          Setup the 2D arrow.
23          """          """
24    
25          # Set to use arrows instead of cone, sphere, etc.          # Use arrow instead of cone or sphere.
26          self.__vtk_arrow2D.SetGlyphTypeToArrow()          self.__vtk_arrow2D.SetGlyphTypeToArrow()
27          # Fill the inside of the arrow.          # Fill the inside of the arrow.
28          self.__vtk_arrow2D.SetFilled(0)          self.__vtk_arrow2D.SetFilled(0)
         self.__output = self.__vtk_arrow2D.GetOutput()  
29            
30      def _getOutput(self):      def _getOutput(self):
31          """          """
32          Return the 2D arrow.          Return the output of the 2D arrow.
33    
34          @rtype: vtkPolyData          @rtype: vtkPolyData
35          @return: Polygonal data          @return: Polygonal data
36          """          """
37            
38          return self.__output          return self.__vtk_arrow2D.GetOutput()
39    
40    
41    ###############################################################################
42    
43    
44  class Arrow3D:  class Arrow3D:
45      """      """
# Line 49  class Arrow3D: Line 52  class Arrow3D:
52          """          """
53    
54          self.__vtk_arrow3D = vtk.vtkArrowSource()          self.__vtk_arrow3D = vtk.vtkArrowSource()
         self.__output = self.__vtk_arrow3D.GetOutput()  
55                    
56      def _getOutput(self):      def _getOutput(self):
57          """          """
58          Return the 3D arrow.          Return the output of the 3D arrow.
59    
60          @rtype: vtkPolyData          @rtype: vtkPolyData
61          @return Polygonal data          @return Polygonal data
62          """          """
63    
64          return self.__output          return self.__vtk_arrow3D.GetOutput()
           
65    

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

  ViewVC Help
Powered by ViewVC 1.1.26