/[escript]/branches/windows_from_1456_trunk_merge_to_1459_trunk/pyvisi/py_src/average.py
ViewVC logotype

Contents of /branches/windows_from_1456_trunk_merge_to_1459_trunk/pyvisi/py_src/average.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1461 - (show annotations)
Fri Mar 28 07:51:34 2008 UTC (12 years, 11 months ago) by trankine
File MIME type: text/x-python
File size: 1438 byte(s)
get the name right
1 """
2 @var __author__: name of author
3 @var __copyright__: copyrights
4 @var __license__: licence agreement
5 @var __url__: url entry point on documentation
6 @var __version__: version
7 @var __date__: date of the version
8 """
9
10 __author__="John Ngui, john.ngui@uq.edu.au"
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 __url__="http://www.iservo.edu.au/esys"
17 __version__="$Revision$"
18 __date__="$Date$"
19
20
21 import vtk
22
23 class CellDataToPointData:
24 """
25 Class that defines a filter to convert cell data to point data by
26 averaging the data values of all cells using a particular point.
27 """
28
29 def __init__(self, object):
30 """
31 Initialise the cell to point data filter.
32
33 @type object: vtkUnstructuredGrid, etc
34 @param object: Input for the cell to point data filter
35 """
36
37 self.__object = object
38 self.__vtk_cell_to_point = vtk.vtkCellDataToPointData()
39
40 self.__setInput()
41
42 def __setInput(self):
43 """
44 Set the input for the cell to point data filter.
45 """
46
47 self.__vtk_cell_to_point.SetInput(self.__object)
48
49 def _getCellToPointOutput(self):
50 """
51 Return the output of the cell to point data filter.
52
53 @rtype: vtkDataSet
54 @return: Data set
55 """
56
57 return self.__vtk_cell_to_point.GetOutput()
58
59

  ViewVC Help
Powered by ViewVC 1.1.26