VTK  9.2.5
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 =========================================================================*/
94 #ifndef vtkXMLImageDataReader_h
95 #define vtkXMLImageDataReader_h
96 
97 #include "vtkIOXMLModule.h" // For export macro
99 
100 class vtkImageData;
101 
102 class VTKIOXML_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
103 {
104 public:
106  void PrintSelf(ostream& os, vtkIndent indent) override;
108 
110 
116 
121  void CopyOutputInformation(vtkInformation* outInfo, int port) override;
122 
123 protected:
126 
127  double Origin[3];
128  double Spacing[3];
129  double Direction[9];
130  int PieceExtent[6];
131 
132  const char* GetDataSetName() override;
133  void SetOutputExtent(int* extent) override;
134 
135  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
136 
137  // Setup the output's information.
138  void SetupOutputInformation(vtkInformation* outInfo) override;
139 
141 
142 private:
144  void operator=(const vtkXMLImageDataReader&) = delete;
145 };
146 
147 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
Represents an XML element and those nested inside.
Read VTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkXMLImageDataReader() override
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
void SetupOutputInformation(vtkInformation *outInfo) override
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
void SetOutputExtent(int *extent) override
vtkImageData * GetOutput()
Get the reader's output.
const char * GetDataSetName() override
static vtkXMLImageDataReader * New()
vtkImageData * GetOutput(int idx)
Get the reader's output.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
Superclass for structured data XML readers.
@ port
Definition: vtkX3D.h:453
@ extent
Definition: vtkX3D.h:351