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

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

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

revision 821 by gross, Fri Jul 28 10:37:16 2006 UTC revision 822 by jongui, Tue Aug 29 01:39:27 2006 UTC
# Line 20  __url__="http://www.iservo.edu.au/esys" Line 20  __url__="http://www.iservo.edu.au/esys"
20  __version__="$Revision:$"  __version__="$Revision:$"
21  __date__="$Date:$"  __date__="$Date:$"
22    
23  from common import PyvisiObject  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    
 class DataCollector(PyvisiObject):  
     """  
     a collector for data, typically read from file or from an escript object  
     """  
     pass  
40    

Legend:
Removed from v.821  
changed lines
  Added in v.822

  ViewVC Help
Powered by ViewVC 1.1.26