OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkXMLImageDataReader.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkXMLImageDataReader.h,v $
5   Language:  C++
6   Date:      $Date: 2003/02/07 20:06:29 $
7   Version:   $Revision: 1.2 $
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 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.
25
26 // .SECTION See Also
27 // vtkXMLPImageDataReader
28
29 #ifndef __vtkXMLImageDataReader_h
30 #define __vtkXMLImageDataReader_h
31
32 #include "vtkXMLStructuredDataReader.h"
33
34 class vtkImageData;
35
36 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
37 {
38 public:
39   vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
40   void PrintSelf(ostream& os, vtkIndent indent);
41   static vtkXMLImageDataReader *New();
42   
43   // Description:
44   // Get/Set the reader's output.
45   void SetOutput(vtkImageData *output);
46   vtkImageData *GetOutput();
47   vtkImageData *GetOutput(int idx);
48   
49 protected:
50   vtkXMLImageDataReader();
51   ~vtkXMLImageDataReader();  
52   
53   float Origin[3];
54   float Spacing[3];
55   
56   const char* GetDataSetName();
57   void SetOutputExtent(int* extent);
58   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
59   void SetupOutputInformation();
60   
61 private:
62   vtkXMLImageDataReader(const vtkXMLImageDataReader&);  // Not implemented.
63   void operator=(const vtkXMLImageDataReader&);  // Not implemented.
64 };
65
66 #endif