22 |
|
|
23 |
class ContourModule: |
class ContourModule: |
24 |
""" |
""" |
25 |
Class that defines contour module. |
Class that defines the contour module. |
26 |
""" |
""" |
27 |
|
|
28 |
def __init__(self): |
def __init__(self): |
83 |
def _generateContours(self): |
def _generateContours(self): |
84 |
""" |
""" |
85 |
Generate the specified number of contours within the specified range. |
Generate the specified number of contours within the specified range. |
86 |
In order to generate an iso surface, the 'lower_range' and |
|
87 |
|
@attention: In order to generate an iso surface, the 'lower_range' and |
88 |
'upper_range' must be equal. |
'upper_range' must be equal. |
89 |
""" |
""" |
90 |
|
|
91 |
self.__vtk_contour.GenerateValues(self.__contours, self.__lower_range, |
self.__vtk_contour.GenerateValues(self.__contours, self.__lower_range, |
92 |
self.__upper_range) |
self.__upper_range) |
93 |
|
|
|
def _getContour(self): |
|
|
""" |
|
|
Return the contour. |
|
|
|
|
|
@rtype: vtkContourFilter |
|
|
@return: Contour filter |
|
|
""" |
|
|
|
|
|
return self.__vtk_contour |
|
|
|
|
94 |
def _getContourModuleOutput(self): |
def _getContourModuleOutput(self): |
95 |
""" |
""" |
96 |
Return the output of the contour. |
Return the output of the contour. |