VTK
vtkPNrrdReader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkPNrrdReader.h
6 
7  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 /*----------------------------------------------------------------------------
17  Copyright (c) Sandia Corporation
18  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
19 ----------------------------------------------------------------------------*/
20 
42 #ifndef __vtkPNrrdReader_h
43 #define __vtkPNrrdReader_h
44 
45 #include "vtkMPIImageReader.h"
46 
47 class vtkCharArray;
48 
50 {
51 public:
53  static vtkPNrrdReader *New();
54  virtual void PrintSelf(ostream &os, vtkIndent indent);
55 
56  virtual int CanReadFile(const char *filename);
57 
58 protected:
60  ~vtkPNrrdReader();
61 
62  virtual int RequestInformation(vtkInformation *request,
63  vtkInformationVector **inputVector,
64  vtkInformationVector *outputVector);
65 
66  virtual int RequestData(vtkInformation *request,
67  vtkInformationVector **inputVector,
68  vtkInformationVector *outputVector);
69 
70  virtual int ReadHeader();
71  virtual int ReadHeader(vtkCharArray *headerBuffer);
72 
74 
75 private:
76  vtkPNrrdReader(const vtkPNrrdReader &); // Not implemented.
77  void operator=(const vtkPNrrdReader &); // Not implemented.
78 };
79 
80 #endif //__vtkPNrrdReader_h