Parent Directory
|
Revision Log
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 |