VTK
dox/Parallel/vtkPNrrdReader.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 /*=========================================================================
00003 
00004   Program:   Visualization Toolkit
00005   Module:    vtkPNrrdReader.h
00006 
00007   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00016 /*----------------------------------------------------------------------------
00017  Copyright (c) Sandia Corporation
00018  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00019 ----------------------------------------------------------------------------*/
00020 
00042 #ifndef __vtkPNrrdReader_h
00043 #define __vtkPNrrdReader_h
00044 
00045 #include "vtkMPIImageReader.h"
00046 
00047 class vtkCharArray;
00048 
00049 class VTK_PARALLEL_EXPORT vtkPNrrdReader : public vtkMPIImageReader
00050 {
00051 public:
00052   vtkTypeMacro(vtkPNrrdReader, vtkMPIImageReader);
00053   static vtkPNrrdReader *New();
00054   virtual void PrintSelf(ostream &os, vtkIndent indent);
00055 
00056   virtual int CanReadFile(const char *filename);
00057 
00058 protected:
00059   vtkPNrrdReader();
00060   ~vtkPNrrdReader();
00061 
00062   virtual int RequestInformation(vtkInformation *request,
00063                                  vtkInformationVector **inputVector,
00064                                  vtkInformationVector *outputVector);
00065 
00066   virtual int RequestData(vtkInformation *request,
00067                           vtkInformationVector **inputVector,
00068                           vtkInformationVector *outputVector);
00069 
00070   virtual int ReadHeader();
00071   virtual int ReadHeader(vtkCharArray *headerBuffer);
00072 
00073   vtkStringArray *DataFiles;
00074 
00075 private:
00076   vtkPNrrdReader(const vtkPNrrdReader &);       // Not implemented.
00077   void operator=(const vtkPNrrdReader &);        // Not implemented.
00078 };
00079 
00080 #endif //__vtkPNrrdReader_h