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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1148 - (hide annotations)
Wed May 16 22:45:33 2007 UTC (12 years, 4 months ago) by jongui
File MIME type: text/x-python
File size: 632 byte(s)
Added the updated files for pyvisi and removed some incorrect reference images.
1 ksteube 1147 """
2     @author: John NGUI
3     """
4    
5     import vtk
6    
7     class Outline:
8     """
9     Class that defines an outline.
10     """
11    
12     def __init__(self, object):
13     """
14     Initialise the outline.
15    
16     @type object: vtkUnstructuredGrid, etc
17     @param object: Data source to the outline
18     """
19    
20     self.__object = object
21     self.__vtk_outline = vtk.vtkOutlineFilter()
22     self.__setInput()
23    
24     def __setInput(self):
25     """
26     Set the input for the outline.
27     """
28    
29     self.__vtk_outline.SetInput(self.__object)
30    
31 jongui 1148 def _getOutlineOutput(self):
32 ksteube 1147 """
33     Return the output of the outline.
34    
35     @rtype: vtkPolyData
36     @return: Polyognal data
37     """
38    
39     return self.__vtk_outline.GetOutput()
40    

  ViewVC Help
Powered by ViewVC 1.1.26