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 "vtkIOMPIImageModule.h" // For export macro
46 #include "vtkNrrdReader.h"
47 
48 class vtkCharArray;
50 class vtkMPIOpaqueFileHandle;
51 
52 class VTKIOMPIIMAGE_EXPORT vtkPNrrdReader : public vtkNrrdReader
53 {
54 public:
55  vtkTypeMacro(vtkPNrrdReader, vtkNrrdReader);
56  static vtkPNrrdReader *New();
57  virtual void PrintSelf(ostream &os, vtkIndent indent);
58 
60 
62  vtkGetObjectMacro(Controller, vtkMultiProcessController);
63  virtual void SetController(vtkMultiProcessController *);
65 
66 protected:
68  ~vtkPNrrdReader();
69 
70  virtual int ReadHeader();
71 
74  int GetDataScalarTypeSize();
75 
80  virtual void PartitionController(const int extent[6]);
81 
84  virtual unsigned long GetHeaderSize(vtkMPIOpaqueFileHandle &file);
85 
90  virtual void SetupFileView(vtkMPIOpaqueFileHandle &file, const int extent[6]);
91 
96  virtual void ReadSlice(int slice, const int extent[6], void *buffer);
97 
100  virtual void TransformData(vtkImageData *data);
101 
103 
105  void SetGroupedController(vtkMultiProcessController *);
108 
110  vtkInformation *outInfo);
111 
113 
114 private:
115  vtkPNrrdReader(const vtkPNrrdReader &); // Not implemented.
116  void operator=(const vtkPNrrdReader &); // Not implemented.
117 };
118 
119 #endif //__vtkPNrrdReader_h