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 
38 #ifndef vtkNrrdReader_h
39 #define vtkNrrdReader_h
40 
41 #include "vtkIOImageModule.h" // For export macro
42 #include "vtkImageReader.h"
43 
44 class vtkCharArray;
45 
47 {
48 public:
49  vtkTypeMacro(vtkNrrdReader, vtkImageReader);
50  static vtkNrrdReader *New();
51  virtual void PrintSelf(ostream &os, vtkIndent indent);
52 
53  virtual int CanReadFile(const char *filename);
54 
55 protected:
56  vtkNrrdReader();
57  ~vtkNrrdReader();
58 
59  virtual int RequestInformation(vtkInformation *request,
60  vtkInformationVector **inputVector,
61  vtkInformationVector *outputVector);
62 
63  virtual int RequestData(vtkInformation *request,
64  vtkInformationVector **inputVector,
65  vtkInformationVector *outputVector);
66 
67  int ReadHeaderInternal(vtkCharArray *headerBuffer);
68  virtual int ReadHeader();
69  virtual int ReadHeader(vtkCharArray *headerBuffer);
70 
71  virtual int ReadDataAscii(vtkImageData *output);
72 
74 
75  enum {
77  ENCODING_ASCII
78  };
79 
80  int Encoding;
81 
82 private:
83  vtkNrrdReader(const vtkNrrdReader &); // Not implemented.
84  void operator=(const vtkNrrdReader &); // Not implemented.
85 };
86 
87 #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:73
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:46
Store zero or more vtkInformation instances.
#define VTKIOIMAGE_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)