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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 948 - (show annotations)
Thu Feb 1 07:23:34 2007 UTC (13 years, 6 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 """
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
32 def _getOutput(self):
33 """
34 Return the output of the outline.
35
36 @rtype: vtkPolyData
37 @return: Polyognal data
38 """
39
40 return self.__vtk_outline.GetOutput()
41

  ViewVC Help
Powered by ViewVC 1.1.26