VTK
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 =========================================================================*/
34 #ifndef vtkXMLImageDataReader_h
35 #define vtkXMLImageDataReader_h
36 
37 #include "vtkIOXMLModule.h" // For export macro
39 
40 class vtkImageData;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47  static vtkXMLImageDataReader *New();
48 
50 
51  vtkImageData *GetOutput();
52  vtkImageData *GetOutput(int idx);
54 
57  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
58 
59 protected:
62 
63  double Origin[3];
64  double Spacing[3];
65  int PieceExtent[6];
66 
67  const char* GetDataSetName();
68  void SetOutputExtent(int* extent);
69 
71 
72  // Setup the output's information.
74 
75  virtual int FillOutputPortInformation(int, vtkInformation*);
76 
77 
78 
79 private:
80  vtkXMLImageDataReader(const vtkXMLImageDataReader&); // Not implemented.
81  void operator=(const vtkXMLImageDataReader&); // Not implemented.
82 };
83 
84 #endif
virtual const char * GetDataSetName()=0
Represents an XML element and those nested inside.
virtual void SetOutputExtent(int *extent)=0
Store vtkAlgorithm input/output information.
Superclass for structured data XML readers.
virtual void CopyOutputInformation(vtkInformation *outInfo, int port)
int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Read VTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
void SetupOutputInformation(vtkInformation *outInfo)