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 
38 
39 class vtkImageData;
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46  static vtkXMLImageDataReader *New();
47 
49 
50  vtkImageData *GetOutput();
51  vtkImageData *GetOutput(int idx);
53 
56  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
57 
58 protected:
61 
62  double Origin[3];
63  double Spacing[3];
64  int PieceExtent[6];
65 
66  const char* GetDataSetName();
67  void SetOutputExtent(int* extent);
68  virtual void SetupUpdateExtentInformation(vtkInformation *outInfo);
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.
virtual void SetupOutputInformation(vtkInformation *outInfo)
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:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void SetupUpdateExtentInformation(vtkInformation *outInfo)
Read VTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTK_IO_EXPORT