1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkXMLImageDataReader.h,v $
6 Date: $Date: 2003/02/07 20:06:29 $
7 Version: $Revision: 1.2 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkXMLImageDataReader - Read VTK XML ImageData files.
19 // .SECTION Description
20 // vtkXMLImageDataReader reads the VTK XML ImageData file format. One
21 // image data file can be read to produce one output. Streaming is
22 // supported. The standard extension for this reader's file format is
23 // "vti". This reader is also used to read a single piece of the
24 // parallel file format.
27 // vtkXMLPImageDataReader
29 #ifndef __vtkXMLImageDataReader_h
30 #define __vtkXMLImageDataReader_h
32 #include "vtkXMLStructuredDataReader.h"
36 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
39 vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
40 void PrintSelf(ostream& os, vtkIndent indent);
41 static vtkXMLImageDataReader *New();
44 // Get/Set the reader's output.
45 void SetOutput(vtkImageData *output);
46 vtkImageData *GetOutput();
47 vtkImageData *GetOutput(int idx);
50 vtkXMLImageDataReader();
51 ~vtkXMLImageDataReader();
56 const char* GetDataSetName();
57 void SetOutputExtent(int* extent);
58 int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
59 void SetupOutputInformation();
62 vtkXMLImageDataReader(const vtkXMLImageDataReader&); // Not implemented.
63 void operator=(const vtkXMLImageDataReader&); // Not implemented.