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

Diff of /trunk/pyvisi/py_src/glyph.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 9  class Glyph3D: Line 9  class Glyph3D:
9      Class that defines 3D glyphs.      Class that defines 3D glyphs.
10      """      """
11    
12      def __init__(self, object, source):      def __init__(self):
13          """          """
14          Initialise the 3D glyph.          Initialise the 3D glyph.
15            """
16    
17            self.__vtk_glyph3D = vtk.vtkGlyph3D()
18    
19        def _setupGlyph3D(self, object, source):
20            """
21            Setup the 3D glyph.
22    
23          @type object: vtkDataSet, etc          @type object: vtkDataSet, etc
24          @param object: Input for the 3D glyph          @param object: Input for the 3D glyph
# Line 21  class Glyph3D: Line 28  class Glyph3D:
28    
29          self.__object = object          self.__object = object
30          self.__source = source          self.__source = source
         self.__vtk_glyph3D = vtk.vtkGlyph3D()  
           
         self.__setupGlyph3D()  
   
     def __setupGlyph3D(self):  
         """  
         Setup the 3D glyph.  
         """  
31    
32          self.__setInput()          self.__setInput()
33          self.__setSource()          self.__setSource()
# Line 139  class Glyph3D: Line 138  class Glyph3D:
138    
139          return self.__vtk_glyph3D          return self.__vtk_glyph3D
140    
141      def _getOutput(self):      def _getGlyph3DOutput(self):
142          """          """
143          Return the output of the 3D glyph.          Return the output of the 3D glyph.
144    
# Line 158  class TensorGlyph: Line 157  class TensorGlyph:
157      Class that defines tensor glyphs.      Class that defines tensor glyphs.
158      """      """
159    
160      def __init__(self, object, source):      def __init__(self):
161          """          """
162          Initialise the tensor glyph.          Initialise the tensor glyph.
163            """
164    
165            self.__vtk_tensor_glyph = vtk.vtkTensorGlyph()
166    
167        def _setupTensorGlyph(self, object, source):
168            """
169            Setup the tensor glyph.
170    
171          @type object: vtkDataSet, etc          @type object: vtkDataSet, etc
172          @param object: Input for the 3D glyph          @param object: Input for the 3D glyph
# Line 170  class TensorGlyph: Line 176  class TensorGlyph:
176    
177          self.__object = object          self.__object = object
178          self.__source = source          self.__source = source
         self.__vtk_tensor_glyph = vtk.vtkTensorGlyph()  
   
         self.__setupTensorGlyph()  
   
     def __setupTensorGlyph(self):  
         """  
         Setup the tensor glyph.  
         """  
179    
180          self.__setInput()          self.__setInput()
181          self.__setSource()          self.__setSource()
182          self.__vtk_tensor_glyph.ClampScalingOn()          self.__vtk_tensor_glyph.ClampScalingOn()
183    
   
184      def __setInput(self):      def __setInput(self):
185          """          """
186          Set the input for the tensor glyph.          Set the input for the tensor glyph.
# Line 218  class TensorGlyph: Line 215  class TensorGlyph:
215    
216          self.__vtk_tensor_glyph.SetMaxScaleFactor(max_scale_factor)          self.__vtk_tensor_glyph.SetMaxScaleFactor(max_scale_factor)
217    
218      def _getOutput(self):      def _getTensorGlyphOutput(self):
219          """          """
220          Return the output of the tensor glyph.          Return the output of the tensor glyph.
221    

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

  ViewVC Help
Powered by ViewVC 1.1.26