VTK  9.7.20261008
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
71
72#ifndef vtkXMLImageDataReader_h
73#define vtkXMLImageDataReader_h
74
75#include "vtkIOXMLModule.h" // For export macro
76#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
78
79VTK_ABI_NAMESPACE_BEGIN
80class vtkImageData;
81
83{
84public:
86 void PrintSelf(ostream& os, vtkIndent indent) override;
88
90
96
101 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
102
103protected:
106
107 double Origin[3];
108 double Spacing[3];
109 double Direction[9];
111
112 const char* GetDataSetName() override;
113 void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override;
114
115 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
116
117 // Setup the output's information.
118 void SetupOutputInformation(vtkInformation* outInfo) override;
119
121
122private:
124 void operator=(const vtkXMLImageDataReader&) = delete;
125};
126
127VTK_ABI_NAMESPACE_END
128#endif
int idx
Definition HexCnBasis.h:79
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.
void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override
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
Setup the output's information.
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.
vtkImageData * GetOutput()
Get the reader's output.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
#define VTK_MARSHALAUTO