/[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 948 - (hide annotations)
Thu Feb 1 07:23:34 2007 UTC (13 years, 7 months ago) by jongui
File MIME type: text/x-python
File size: 628 byte(s)
fixed some bugs in pyvisi and added more epydocs.
1 jongui 943 """
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 jongui 948 @type object: vtkUnstructuredGrid, etc
17     @param object: Data source to the outline
18 jongui 943 """
19    
20     self.__object = object
21     self.__vtk_outline = vtk.vtkOutlineFilter()
22 jongui 948 self.__setInput()
23 jongui 943
24 jongui 948 def __setInput(self):
25 jongui 943 """
26 jongui 948 Set the input for the outline.
27 jongui 943 """
28    
29     self.__vtk_outline.SetInput(self.__object)
30    
31    
32     def _getOutput(self):
33     """
34     Return the output of the outline.
35    
36     @rtype: vtkPolyData
37     @return: Polyognal data
38     """
39    
40 jongui 948 return self.__vtk_outline.GetOutput()
41 jongui 943

  ViewVC Help
Powered by ViewVC 1.1.26