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