VTK  9.3.0
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
32#ifndef vtkXMLImageDataReader_h
33#define vtkXMLImageDataReader_h
34
35#include "vtkIOXMLModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkImageData;
40
42{
43public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
55
60 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
61
62protected:
65
66 double Origin[3];
67 double Spacing[3];
68 double Direction[9];
69 int PieceExtent[6];
70
71 const char* GetDataSetName() override;
72 void SetOutputExtent(int* extent) override;
73
74 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
75
76 // Setup the output's information.
77 void SetupOutputInformation(vtkInformation* outInfo) override;
78
80
81private:
83 void operator=(const vtkXMLImageDataReader&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:38
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.