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 =========================================================================*/
29 #ifndef vtkXMLPImageDataReader_h
30 #define vtkXMLPImageDataReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkImageData;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42  static vtkXMLPImageDataReader *New();
43 
45 
48  vtkImageData *GetOutput();
49  vtkImageData *GetOutput(int idx);
51 
52  // For the specified port, copy the information this reader sets up in
53  // SetupOutputInformation to outInfo
54  void CopyOutputInformation(vtkInformation *outInfo, int port) VTK_OVERRIDE;
55 
56 protected:
58  ~vtkXMLPImageDataReader() VTK_OVERRIDE;
59 
60  double Origin[3];
61  double Spacing[3];
62 
63  vtkImageData* GetPieceInput(int index);
64 
65  void SetupEmptyOutput() VTK_OVERRIDE;
66  const char* GetDataSetName() VTK_OVERRIDE;
67  void SetOutputExtent(int* extent) VTK_OVERRIDE;
68  void GetPieceInputExtent(int index, int* extent) VTK_OVERRIDE;
69  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) VTK_OVERRIDE;
70 
71  // Setup the output's information.
72  void SetupOutputInformation(vtkInformation *outInfo) VTK_OVERRIDE;
73 
74  vtkXMLDataReader* CreatePieceReader() VTK_OVERRIDE;
75  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
76 
77 private:
78  vtkXMLPImageDataReader(const vtkXMLPImageDataReader&) VTK_DELETE_FUNCTION;
79  void operator=(const vtkXMLPImageDataReader&) VTK_DELETE_FUNCTION;
80 };
81 
82 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
Read PVTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass for parallel structured data XML readers.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
void CopyOutputInformation(vtkInformation *outInfo, int port) override
Superclass for VTK XML file readers.
static vtkAlgorithm * New()