VTK  9.7.20261008
vtkXMLPImageDataReader.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
19
20#ifndef vtkXMLPImageDataReader_h
21#define vtkXMLPImageDataReader_h
22
23#include "vtkIOXMLModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkImageData;
29
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
44
45 // For the specified port, copy the information this reader sets up in
46 // SetupOutputInformation to outInfo
47 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
48
49protected:
52
53 double Origin[3];
54 double Spacing[3];
55
57
58 void SetupEmptyOutput() override;
59 const char* GetDataSetName() override;
60 void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override;
61 void GetPieceInputExtent(int index, int extent[6]) override;
62 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
63
64 // Setup the output's information.
65 void SetupOutputInformation(vtkInformation* outInfo) override;
66
69
70private:
72 void operator=(const vtkXMLPImageDataReader&) = delete;
73};
74
75VTK_ABI_NAMESPACE_END
76#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.
Superclass for VTK XML file readers.
void SetupEmptyOutput() override
Setup the output with no data available.
vtkImageData * GetOutput()
Get the reader's output.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
~vtkXMLPImageDataReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
vtkImageData * GetPieceInput(int index)
const char * GetDataSetName() override
Get the name of the data set being read.
vtkImageData * GetOutput(int idx)
Get the reader's output.
void GetPieceInputExtent(int index, int extent[6]) override
static vtkXMLPImageDataReader * New()
void SetupOutputInformation(vtkInformation *outInfo) override
Pipeline execute information driver.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it.
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override
#define VTK_MARSHALAUTO