VTK  9.0.1
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 =========================================================================*/
29 #ifndef vtkXMLImageDataReader_h
30 #define vtkXMLImageDataReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkImageData;
36 
37 class VTKIOXML_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42  static vtkXMLImageDataReader* New();
43 
45 
48  vtkImageData* GetOutput();
49  vtkImageData* GetOutput(int idx);
51 
56  void CopyOutputInformation(vtkInformation* outInfo, int port) override;
57 
58 protected:
60  ~vtkXMLImageDataReader() override;
61 
62  double Origin[3];
63  double Spacing[3];
64  double Direction[9];
65  int PieceExtent[6];
66 
67  const char* GetDataSetName() override;
68  void SetOutputExtent(int* extent) override;
69 
70  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
71 
72  // Setup the output's information.
73  void SetupOutputInformation(vtkInformation* outInfo) override;
74 
75  int FillOutputPortInformation(int, vtkInformation*) override;
76 
77 private:
79  void operator=(const vtkXMLImageDataReader&) = delete;
80 };
81 
82 #endif
vtkXMLStructuredDataReader::SetOutputExtent
virtual void SetOutputExtent(int *extent)=0
vtkXMLStructuredDataReader::CopyOutputInformation
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkXMLStructuredDataReader::ReadPrimaryElement
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkXMLImageDataReader
Read VTK XML ImageData files.
Definition: vtkXMLImageDataReader.h:37
vtkXMLReader::GetDataSetName
virtual const char * GetDataSetName()=0
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkXMLStructuredDataReader
Superclass for structured data XML readers.
Definition: vtkXMLStructuredDataReader.h:33
vtkXMLStructuredDataReader::SetupOutputInformation
void SetupOutputInformation(vtkInformation *outInfo) override
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkXMLStructuredDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkXMLStructuredDataReader.h