1 |
""" |
""" |
2 |
Class that shows a vector field by arrows. |
@author: John Ngui |
3 |
|
@author: Lutz Gross |
4 |
""" |
""" |
5 |
|
|
6 |
import vtk |
import vtk |
8 |
|
|
9 |
class Arrows(Common): |
class Arrows(Common): |
10 |
""" |
""" |
11 |
@author: John Ngui |
Class that shows a vector field by arrows. |
|
@author: Lutz Gross |
|
12 |
""" |
""" |
13 |
|
|
14 |
def __init__(self, open_scene, data_collector): |
def __init__(self, scene, data_collector): |
15 |
""" |
""" |
16 |
@type open_scene: L{OpenScene <openscene.OpenScene>} object |
@type scene: L{OpenScene <scene.Scene>} object |
17 |
@param open_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 |
20 |
@param data_collector: Source of data for visualization |
@param data_collector: Source of data for visualization |
21 |
""" |
""" |
22 |
|
|
23 |
Common.__init__(self, open_scene, data_collector) |
Common.__init__(self, scene, data_collector) |
24 |
self.vtk_glyph = None |
self.vtk_glyph = None |
25 |
self.setArrows() |
self.setArrows() |
26 |
|
|