Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IO/vtkXMLImageDataReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLImageDataReader.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00032 #ifndef __vtkXMLImageDataReader_h
00033 #define __vtkXMLImageDataReader_h
00034 
00035 #include "vtkXMLStructuredDataReader.h"
00036 
00037 class vtkImageData;
00038 
00039 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
00040 {
00041 public:
00042   vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044   static vtkXMLImageDataReader *New();
00045   
00047 
00048   void SetOutput(vtkImageData *output);
00049   vtkImageData *GetOutput();
00050   vtkImageData *GetOutput(int idx);
00052   
00053 protected:
00054   vtkXMLImageDataReader();
00055   ~vtkXMLImageDataReader();  
00056   
00057   float Origin[3];
00058   float Spacing[3];
00059   
00060   const char* GetDataSetName();
00061   void SetOutputExtent(int* extent);
00062   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00063   void SetupOutputInformation();
00064   
00065 private:
00066   vtkXMLImageDataReader(const vtkXMLImageDataReader&);  // Not implemented.
00067   void operator=(const vtkXMLImageDataReader&);  // Not implemented.
00068 };
00069 
00070 #endif