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

Contents of /trunk/pyvisi/py_src/datacollector.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 822 - (show annotations)
Tue Aug 29 01:39:27 2006 UTC (14 years, 2 months ago) by jongui
File MIME type: text/x-python
File size: 1049 byte(s)
Added:
trunk/pyvisi/py_src/driver.py

Modified:
trunk/pyvisi/py_src/datacollector.py
trunk/pyvisi/py_src/map.py
trunk/pyvisi/py_src/scene.py


1 """
2
3 classes dealing with data for the visualization
4
5 @var __author__: name of author
6 @var __license__: licence agreement
7 @var __copyright__: copyrights
8 @var __url__: url entry point on documentation
9 @var __version__: version
10 @var __date__: date of the version
11 """
12
13 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
14 http://www.access.edu.au
15 Primary Business: Queensland, Australia"""
16 __license__="""Licensed under the Open Software License version 3.0
17 http://www.opensource.org/licenses/osl-3.0.php"""
18 __author__="Paul Cochrane, L. Gross"
19 __url__="http://www.iservo.edu.au/esys"
20 __version__="$Revision:$"
21 __date__="$Date:$"
22
23 import vtk
24
25 class DataCollector:
26
27 def __init__(self, outline = True):
28 self.outline = True
29 self.file_name = None
30 self.vtk_xml_reader = None
31
32 def setSource(self, file_name):
33 self.file_name = file_name
34 self.vtk_xml_reader = vtk.vtkXMLUnstructuredGridReader()
35 self.vtk_xml_reader.SetFileName(self.file_name)
36
37 def getReader(self):
38 return self.vtk_xml_reader
39
40

  ViewVC Help
Powered by ViewVC 1.1.26