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