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

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

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

revision 2549 by jfenwick, Mon Jul 20 06:43:47 2009 UTC revision 2625 by jfenwick, Fri Aug 21 06:30:25 2009 UTC
# Line 20  http://www.opensource.org/licenses/osl-3 Line 20  http://www.opensource.org/licenses/osl-3
20  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  @var __author__: name of author  :var __author__: name of author
24  @var __copyright__: copyrights  :var __copyright__: copyrights
25  @var __license__: licence agreement  :var __license__: licence agreement
26  @var __url__: url entry point on documentation  :var __url__: url entry point on documentation
27  @var __version__: version  :var __version__: version
28  @var __date__: date of the version  :var __date__: date of the version
29  """  """
30    
31  __author__="John Ngui, john.ngui@uq.edu.au"  __author__="John Ngui, john.ngui@uq.edu.au"
# Line 44  class ImageReader: Line 44  class ImageReader:
44          """          """
45          Initialise the image reader.          Initialise the image reader.
46    
47          @type format:  L{ImageFormat <constant.ImageFormat>} constant          :type format:  `ImageFormat` constant
48          @param format: Format of the image          :param format: Format of the image
49          """          """
50                  if getMPISizeWorld()>1:                  if getMPISizeWorld()>1:
51                      raise ValueError,"pyvisi.ImageReader is not running on more than one processor."                      raise ValueError,"pyvisi.ImageReader is not running on more than one processor."
# Line 57  class ImageReader: Line 57  class ImageReader:
57          Return the corresponding image reader based on the supplied image          Return the corresponding image reader based on the supplied image
58          format.          format.
59    
60          @rtype: vtkImageReader2 (i.e. vtkJPEGReader, etc)          :rtype: vtkImageReader2 (i.e. vtkJPEGReader, etc)
61          @return: Image reader          :return: Image reader
62          """          """
63    
64          if(self.__format == ImageFormat.JPG):          if(self.__format == ImageFormat.JPG):
# Line 76  class ImageReader: Line 76  class ImageReader:
76          """          """
77          Set the image file name to be read.          Set the image file name to be read.
78    
79          @type image_name: String          :type image_name: String
80          @param image_name: Image name from which image data is to be read          :param image_name: Image name from which image data is to be read
81          """          """
82    
83          self.__vtk_image_reader.SetFileName(image_name)          self.__vtk_image_reader.SetFileName(image_name)
# Line 86  class ImageReader: Line 86  class ImageReader:
86          """          """
87          Return the output of the image reader.          Return the output of the image reader.
88    
89          @rtype: vtkImageData          :rtype: vtkImageData
90          @return: Image data          :return: Image data
91          """          """
92    
93          return self.__vtk_image_reader.GetOutput()          return self.__vtk_image_reader.GetOutput()

Legend:
Removed from v.2549  
changed lines
  Added in v.2625

  ViewVC Help
Powered by ViewVC 1.1.26