VTK
vtkNrrdReader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkNrrdReader.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 
41 #ifndef vtkNrrdReader_h
42 #define vtkNrrdReader_h
43 
44 #include "vtkIOImageModule.h" // For export macro
45 #include "vtkImageReader.h"
46 
47 class vtkCharArray;
48 
50 {
51 public:
52  vtkTypeMacro(vtkNrrdReader, vtkImageReader);
53  static vtkNrrdReader *New();
54  virtual void PrintSelf(ostream &os, vtkIndent indent);
55 
56  virtual int CanReadFile(const char *filename);
57 
58 protected:
59  vtkNrrdReader();
60  ~vtkNrrdReader();
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  int ReadHeaderInternal(vtkCharArray *headerBuffer);
71  virtual int ReadHeader();
72  virtual int ReadHeader(vtkCharArray *headerBuffer);
73 
74  virtual int ReadDataAscii(vtkImageData *output);
75 
77 
78  enum {
80  ENCODING_ASCII
81  };
82 
83  int Encoding;
84 
85 private:
86  vtkNrrdReader(const vtkNrrdReader &); // Not implemented.
87  void operator=(const vtkNrrdReader &); // Not implemented.
88 };
89 
90 #endif //vtkNrrdReader_h
Store vtkAlgorithm input/output information.
a vtkAbstractArray subclass for strings
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkImageReader * New()
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:42
virtual int CanReadFile(const char *vtkNotUsed(fname))
vtkStringArray * DataFiles
Definition: vtkNrrdReader.h:76
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass of transformable binary file readers.
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Read nrrd files file system.
Definition: vtkNrrdReader.h:49
Store zero or more vtkInformation instances.
#define VTKIOIMAGE_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)