/[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 1147 - (show annotations)
Wed May 16 06:39:11 2007 UTC (12 years, 2 months ago) by ksteube
File MIME type: text/x-python
File size: 628 byte(s)
Added back in some files that were accidentally deleted.

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