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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00034 #ifndef __vtkXMLImageDataReader_h
00035 #define __vtkXMLImageDataReader_h
00036 
00037 #include "vtkXMLStructuredDataReader.h"
00038 
00039 class vtkImageData;
00040 
00041 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046   static vtkXMLImageDataReader *New();
00047   
00049 
00050   void SetOutput(vtkImageData *output);
00051   vtkImageData *GetOutput();
00052   vtkImageData *GetOutput(int idx);
00054   
00055 protected:
00056   vtkXMLImageDataReader();
00057   ~vtkXMLImageDataReader();  
00058   
00059   double Origin[3];
00060   double Spacing[3];
00061   
00062   const char* GetDataSetName();
00063   void SetOutputExtent(int* extent);
00064   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00065   void SetupOutputInformation();
00066   
00067 private:
00068   vtkXMLImageDataReader(const vtkXMLImageDataReader&);  // Not implemented.
00069   void operator=(const vtkXMLImageDataReader&);  // Not implemented.
00070 };
00071 
00072 #endif