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 =========================================================================*/ 00043 #ifndef __vtkXMLImageDataReader_h 00044 #define __vtkXMLImageDataReader_h 00045 00046 #include "vtkXMLStructuredDataReader.h" 00047 00048 class vtkImageData; 00049 00050 class VTK_IO_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader 00051 { 00052 public: 00053 vtkTypeRevisionMacro(vtkXMLImageDataReader,vtkXMLStructuredDataReader); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 static vtkXMLImageDataReader *New(); 00056 00058 00059 void SetOutput(vtkImageData *output); 00060 vtkImageData *GetOutput(); 00061 vtkImageData *GetOutput(int idx); 00063 00064 protected: 00065 vtkXMLImageDataReader(); 00066 ~vtkXMLImageDataReader(); 00067 00068 float Origin[3]; 00069 float Spacing[3]; 00070 00071 const char* GetDataSetName(); 00072 void SetOutputExtent(int* extent); 00073 int ReadPrimaryElement(vtkXMLDataElement* ePrimary); 00074 void SetupOutputInformation(); 00075 00076 private: 00077 vtkXMLImageDataReader(const vtkXMLImageDataReader&); // Not implemented. 00078 void operator=(const vtkXMLImageDataReader&); // Not implemented. 00079 }; 00080 00081 #endif