VTK
vtkMPIImageReader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkMPIImageReader.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 
47 #ifndef __vtkMPIImageReader_h
48 #define __vtkMPIImageReader_h
49 
50 #include "vtkImageReader.h"
51 
52 class vtkMPIOpaqueFileHandle;
54 
56 {
57 public:
59  static vtkMPIImageReader *New();
60  virtual void PrintSelf(ostream &os, vtkIndent indent);
61 
63 
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
66  virtual void SetController(vtkMultiProcessController *);
68 
69 protected:
72 
74 
77  int GetDataScalarTypeSize();
78 
83  virtual void PartitionController(const int extent[6]);
84 
87  virtual unsigned long GetHeaderSize(vtkMPIOpaqueFileHandle &file);
88 
93  virtual void SetupFileView(vtkMPIOpaqueFileHandle &file, const int extent[6]);
94 
99  virtual void ReadSlice(int slice, const int extent[6], void *buffer);
100 
103  virtual void TransformData(vtkImageData *data);
104 
106 
108  void SetGroupedController(vtkMultiProcessController *);
111 
112  virtual void ExecuteData(vtkDataObject *data);
113 
114 private:
115  vtkMPIImageReader(const vtkMPIImageReader &); // Not implemented
116  void operator=(const vtkMPIImageReader &); // Not implemented
117 };
118 
119 #endif //__vtkMPIImageReader_h