VTK
vtkXMLPImageDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPImageDataReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkXMLPImageDataReader_h
29 #define __vtkXMLPImageDataReader_h
30 
32 
33 class vtkImageData;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40  static vtkXMLPImageDataReader *New();
41 
43 
44  vtkImageData *GetOutput();
45  vtkImageData *GetOutput(int idx);
47 
48  // For the specified port, copy the information this reader sets up in
49  // SetupOutputInformation to outInfo
50  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
51 
52 protected:
55 
56  double Origin[3];
57  double Spacing[3];
58 
59  vtkImageData* GetPieceInput(int index);
60 
61  void SetupEmptyOutput();
62  const char* GetDataSetName();
63  void SetOutputExtent(int* extent);
64  void GetPieceInputExtent(int index, int* extent);
66 
67  // Setup the output's information.
69 
71  virtual int FillOutputPortInformation(int, vtkInformation*);
72 
73 private:
74  vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
75  void operator=(const vtkXMLPImageDataReader&); // Not implemented.
76 };
77 
78 #endif