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