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

Diff of /trunk/pyvisi/py_src/contourmodule.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1199 by jongui, Wed Jun 20 05:01:30 2007 UTC
# Line 1  Line 1 
1  """  """
2  @author: John NGUI  @var __author__: name of author
3    @var __copyright__: copyrights
4    @var __license__: licence agreement
5    @var __url__: url entry point on documentation
6    @var __version__: version
7    @var __date__: date of the version
8  """  """
9    
10    __author__="John Ngui, john.ngui@uq.edu.au"
11    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
12                        http://www.access.edu.au
13                    Primary Business: Queensland, Australia"""
14    __license__="""Licensed under the Open Software License version 3.0
15                 http://www.opensource.org/licenses/osl-3.0.php"""
16    __url__="http://www.iservo.edu.au/esys"
17    __version__="$Revision$"
18    __date__="$Date$"
19    
20    
21  import vtk  import vtk
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):
# Line 67  class ContourModule: Line 83  class ContourModule:
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.

Legend:
Removed from v.1148  
changed lines
  Added in v.1199

  ViewVC Help
Powered by ViewVC 1.1.26