OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / vtk / vtkXMLPImageDataReader.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkXMLPImageDataReader.h,v $
5   Language:  C++
6   Date:      $Date: 2002/10/16 18:23:06 $
7   Version:   $Revision: 1.1 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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".
25
26 // .SECTION See Also
27 // vtkXMLImageDataReader
28
29 #ifndef __vtkXMLPImageDataReader_h
30 #define __vtkXMLPImageDataReader_h
31
32 #include "vtkXMLPStructuredDataReader.h"
33
34 class vtkImageData;
35
36 class VTK_IO_EXPORT vtkXMLPImageDataReader : public vtkXMLPStructuredDataReader
37 {
38 public:
39   vtkTypeRevisionMacro(vtkXMLPImageDataReader,vtkXMLPStructuredDataReader);
40   void PrintSelf(ostream& os, vtkIndent indent);
41   static vtkXMLPImageDataReader *New();
42   
43   // Description:
44   // Get/Set the reader's output.
45   void SetOutput(vtkImageData *output);
46   vtkImageData *GetOutput();
47   
48 protected:
49   vtkXMLPImageDataReader();
50   ~vtkXMLPImageDataReader();
51   
52   float Origin[3];
53   float Spacing[3];
54   
55   vtkImageData* GetPieceInput(int index);
56   
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();
63   
64 private:
65   vtkXMLPImageDataReader(const vtkXMLPImageDataReader&);  // Not implemented.
66   void operator=(const vtkXMLPImageDataReader&);  // Not implemented.
67 };
68
69 #endif