1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkXMLPImageDataReader.h,v $
6 Date: $Date: 2002/10/16 18:23:06 $
7 Version: $Revision: 1.1 $
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 vtkXMLPImageDataReader - Read PVTK XML ImageData files.
19 // .SECTION Description
20 // vtkXMLPImageDataReader reads the PVTK XML ImageData file format.
21 // This reads the parallel format's summary file and then uses
22 // vtkXMLImageDataReader to read data from the individual ImageData
23 // piece files. Streaming is supported. The standard extension for
24 // this reader's file format is "pvti".
27 // vtkXMLImageDataReader
29 #ifndef __vtkXMLPImageDataReader_h
30 #define __vtkXMLPImageDataReader_h
32 #include "vtkXMLPStructuredDataReader.h"
36 class VTK_IO_EXPORT vtkXMLPImageDataReader : public vtkXMLPStructuredDataReader
39 vtkTypeRevisionMacro(vtkXMLPImageDataReader,vtkXMLPStructuredDataReader);
40 void PrintSelf(ostream& os, vtkIndent indent);
41 static vtkXMLPImageDataReader *New();
44 // Get/Set the reader's output.
45 void SetOutput(vtkImageData *output);
46 vtkImageData *GetOutput();
49 vtkXMLPImageDataReader();
50 ~vtkXMLPImageDataReader();
55 vtkImageData* GetPieceInput(int index);
57 const char* GetDataSetName();
58 void SetOutputExtent(int* extent);
59 void GetPieceInputExtent(int index, int* extent);
60 int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
61 void SetupOutputInformation();
62 vtkXMLDataReader* CreatePieceReader();
65 vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
66 void operator=(const vtkXMLPImageDataReader&); // Not implemented.