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

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

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

revision 840 by jongui, Wed Sep 6 07:52:12 2006 UTC revision 845 by jongui, Fri Sep 8 07:13:01 2006 UTC
# Line 11  class Arrows(Common): Line 11  class Arrows(Common):
11      Class that shows a vector field by arrows.      Class that shows a vector field by arrows.
12      """      """
13    
14      def __init__(self, scene, data_collector):      def __init__(self, scene, data_collector, lut = None):
15          """          """
16          @type scene: L{OpenScene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
17          @param scene: Scene in which components are to be added to          @param scene: Scene in which components are to be added to
18          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
19              object              object
# Line 24  class Arrows(Common): Line 24  class Arrows(Common):
24          self.vtk_glyph = None          self.vtk_glyph = None
25          self.setArrows()          self.setArrows()
26    
27          Common.setMapper(self, "self.vtk_glyph.GetOutput()")          Common.setMapper(self, "self.vtk_glyph.GetOutput()", lut)
28          Common.setActor(self)          Common.setActor(self)
29          Common.addActor(self)                Common.addActor(self)      
30            
# Line 65  class Arrows(Common): Line 65  class Arrows(Common):
65    
66    
67  from arrows import Arrows  from arrows import Arrows
68  from plane import Plane  from geo import Plane
69            
70  class ArrowsOnPlane(Arrows, Plane):  class ArrowsOnPlane(Arrows, Plane):
71      """      """
72      shows a vector field by arrows on a plane      Class that shows a vector field by arrows on a given plane.
73      """      """
74    
75      def __init__(self, scene, data_collector):      def __init__(self, scene, data_collector, lut = None):
76            """
77            @type scene: L{Scene <scene.Scene>} object
78            @param scene: Scene in which components are to be added to
79            @type data_collector: L{DataCollector <datacollector.DataCollector>}
80                object
81    
82            @param data_collector: Source of data for visualization
83            """
84    
85          Common.__init__(self, scene, data_collector)                  Common.__init__(self, scene, data_collector)        
86          self.vtk_glyph = None          self.vtk_glyph = None
87          self.setArrows()          self.setArrows()

Legend:
Removed from v.840  
changed lines
  Added in v.845

  ViewVC Help
Powered by ViewVC 1.1.26