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

Annotation of /trunk/pyvisi/py_src/common.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 827 - (hide annotations)
Wed Aug 30 00:08:02 2006 UTC (14 years, 8 months ago) by jongui
File MIME type: text/x-python
File size: 887 byte(s)
Added:
contour.py and arrows.py


1 gross 802 """
2     class that shows a vector field by arrows
3    
4     @var __author__: name of author
5     @var __license__: licence agreement
6     @var __copyright__: copyrights
7     @var __url__: url entry point on documentation
8     @var __version__: version
9     @var __date__: date of the version
10     """
11     __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
12     http://www.access.edu.au
13     Primary Business: Queensland, Australia"""
14     __license__="""Licensed under the Open Software License version 3.0
15     http://www.opensource.org/licenses/osl-3.0.php"""
16     __author__="Paul Cochrane, L. Gross"
17     __url__="http://www.iservo.edu.au/esys"
18     __version__="$Revision:$"
19     __date__="$Date:$"
20    
21 jongui 827 import vtk
22 gross 802
23 jongui 827 class Mapper:
24 gross 802
25 jongui 827 def __init__(self):
26     self.mapper = None
27 gross 802
28 jongui 827 def setMapper(self, component):
29     self.vtk_mapper = vtk.vtkDataSetMapper()
30     eval("self.vtk_mapper.SetInput(self.%s.GetOutput())" % component)
31 gross 802
32 jongui 827

  ViewVC Help
Powered by ViewVC 1.1.26