/[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 972 by jongui, Fri Feb 2 05:33:05 2007 UTC revision 973 by jongui, Thu Feb 15 04:06:23 2007 UTC
# Line 9  class Glyph3D: Line 9  class Glyph3D:
9      Class that defines 3D glyph.      Class that defines 3D glyph.
10      """      """
11    
12      def __init__(self, object, source, range):      def __init__(self, object, source):
13          """          """
14          Initialise the 3D glyph.          Initialise the 3D glyph.
15    
# Line 17  class Glyph3D: Line 17  class Glyph3D:
17          @param object: Input for the 3D glyph          @param object: Input for the 3D glyph
18          @type source: vtkPolyData            @type source: vtkPolyData  
19          @param source: Source for the 3D glyph (i.e. Arrow2D, Arrow3D, etc)          @param source: Source for the 3D glyph (i.e. Arrow2D, Arrow3D, etc)
         @type range: Two column tuple containing numbers  
         @param range: Range to map scalar values  
20          """          """
21    
22          self.__object = object          self.__object = object
23          self.__source = source          self.__source = source
         self.__range = range  
24          self.__vtk_glyph3D = vtk.vtkGlyph3D()          self.__vtk_glyph3D = vtk.vtkGlyph3D()
25    
26          self.__setInput()          self.__setInput()
# Line 34  class Glyph3D: Line 31  class Glyph3D:
31    
32          self.__setScalingOn()          self.__setScalingOn()
33          self.__setOrientOn()          self.__setOrientOn()
         self.__setRange()  
34    
35      def __setInput(self):      def __setInput(self):
36          """          """
# Line 116  class Glyph3D: Line 112  class Glyph3D:
112    
113          self.__vtk_glyph3D.OrientOn()          self.__vtk_glyph3D.OrientOn()
114                    
115      def __setRange(self):      def _setRange(self, range):
116          """          """
117          Set the range to map scalar values.          Set the range to map scalar values.
118    
119            @type range: Two column tuple containing numbers
120            @param range: Range to map scalar values
121          """          """
122    
123          self.__vtk_glyph3D.SetRange(self.__range)          self.__vtk_glyph3D.SetRange(range)
124    
125      def _getOutput(self):      def _getOutput(self):
126          """          """

Legend:
Removed from v.972  
changed lines
  Added in v.973

  ViewVC Help
Powered by ViewVC 1.1.26