VTK
vtkXMLPImageDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPImageDataReader.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 vtkXMLPImageDataReader_h
30 #define vtkXMLPImageDataReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkImageData;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42  static vtkXMLPImageDataReader *New();
43 
45 
48  vtkImageData *GetOutput();
49  vtkImageData *GetOutput(int idx);
51 
52  // For the specified port, copy the information this reader sets up in
53  // SetupOutputInformation to outInfo
54  void CopyOutputInformation(vtkInformation *outInfo, int port) override;
55 
56 protected:
58  ~vtkXMLPImageDataReader() override;
59 
60  double Origin[3];
61  double Spacing[3];
62 
63  vtkImageData* GetPieceInput(int index);
64 
65  void SetupEmptyOutput() override;
66  const char* GetDataSetName() override;
67  void SetOutputExtent(int* extent) override;
68  void GetPieceInputExtent(int index, int* extent) override;
69  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
70 
71  // Setup the output's information.
72  void SetupOutputInformation(vtkInformation *outInfo) override;
73 
75  int FillOutputPortInformation(int, vtkInformation*) override;
76 
77 private:
79  void operator=(const vtkXMLPImageDataReader&) = delete;
80 };
81 
82 #endif
virtual void SetOutputExtent(int *extent)=0
virtual const char * GetDataSetName()=0
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it...
virtual void SetupEmptyOutput()=0
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
void SetupOutputInformation(vtkInformation *outInfo) override
Pipeline execute information driver.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
Read PVTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass for parallel structured data XML readers.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
void CopyOutputInformation(vtkInformation *outInfo, int port) override
Superclass for VTK XML file readers.
static vtkAlgorithm * New()
virtual void GetPieceInputExtent(int index, int *extent)=0