VTK  9.3.20240424
vtkXMLImageDataReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
72#ifndef vtkXMLImageDataReader_h
73#define vtkXMLImageDataReader_h
74
75#include "vtkIOXMLModule.h" // For export macro
77
78VTK_ABI_NAMESPACE_BEGIN
79class vtkImageData;
80
82{
83public:
85 void PrintSelf(ostream& os, vtkIndent indent) override;
87
89
95
100 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
101
102protected:
105
106 double Origin[3];
107 double Spacing[3];
108 double Direction[9];
109 int PieceExtent[6];
110
111 const char* GetDataSetName() override;
112 void SetOutputExtent(int* extent) override;
113
114 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
115
116 // Setup the output's information.
117 void SetupOutputInformation(vtkInformation* outInfo) override;
118
120
121private:
123 void operator=(const vtkXMLImageDataReader&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
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.
static vtkXMLImageDataReader * New()
~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
vtkImageData * GetOutput(int idx)
Get the reader's output.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the primary element from the file.
const char * GetDataSetName() override
Get the name of the data set being read.
void SetOutputExtent(int *extent) override
vtkImageData * GetOutput()
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.